2006-10-30 11:04:47 +00:00
|
|
|
--TEST--
|
|
|
|
Bug #39304 (Segmentation fault with list unpacking of string offset)
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
$s = "";
|
|
|
|
list($a, $b) = $s[0];
|
2011-09-07 10:44:32 +00:00
|
|
|
echo "I am alive";
|
2006-10-30 11:04:47 +00:00
|
|
|
?>
|
|
|
|
--EXPECTF--
|
2011-12-19 02:05:03 +00:00
|
|
|
Notice: Uninitialized string offset: 0 in %sbug39304.php on line %d
|
2008-03-08 13:01:41 +00:00
|
|
|
|
2011-12-19 02:05:03 +00:00
|
|
|
Notice: Uninitialized string offset: 1 in %sbug39304.php on line %d
|
2011-09-07 10:44:32 +00:00
|
|
|
|
2011-12-19 02:05:03 +00:00
|
|
|
Notice: Uninitialized string offset: 0 in %sbug39304.php on line %d
|
2011-09-07 10:44:32 +00:00
|
|
|
I am alive
|
|
|
|
|