mirror of
https://github.com/php/php-src.git
synced 2024-10-16 22:12:33 +00:00
17 lines
378 B
PHP
Executable File
17 lines
378 B
PHP
Executable File
--TEST--
|
|
Bug #39304 (Segmentation fault with list unpacking of string offset)
|
|
--FILE--
|
|
<?php
|
|
$s = "";
|
|
list($a, $b) = $s[0];
|
|
echo "I am alive";
|
|
?>
|
|
--EXPECTF--
|
|
Notice: Uninitialized string offset: 0 in %sbug39304.php on line 3
|
|
|
|
Notice: Uninitialized string offset: 1 in %sbug39304.php on line 3
|
|
|
|
Notice: Uninitialized string offset: 0 in %sbug39304.php on line 3
|
|
I am alive
|
|
|