diff options
Diffstat (limited to 'Zend/tests/bug39304.phpt')
-rwxr-xr-x | Zend/tests/bug39304.phpt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Zend/tests/bug39304.phpt b/Zend/tests/bug39304.phpt index 0129d21348..8303b82573 100755 --- a/Zend/tests/bug39304.phpt +++ b/Zend/tests/bug39304.phpt @@ -4,8 +4,13 @@ Bug #39304 (Segmentation fault with list unpacking of string offset) <?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: 0 in %sbug39304.php on line %d + +Notice: Uninitialized string offset: 1 in %sbug39304.php on line %d + +Notice: Uninitialized string offset: 0 in %sbug39304.php on line %d +I am alive -Fatal error: Cannot use string offset as an array in %sbug39304.php on line 3 |