Annotation of embedaddon/php/Zend/tests/bug39304.phpt, revision 1.1.1.2
1.1 misho 1: --TEST--
2: Bug #39304 (Segmentation fault with list unpacking of string offset)
3: --FILE--
4: <?php
5: $s = "";
6: list($a, $b) = $s[0];
1.1.1.2 ! misho 7: echo "I am alive";
1.1 misho 8: ?>
9: --EXPECTF--
1.1.1.2 ! misho 10: Notice: Uninitialized string offset: 0 in %sbug39304.php on line %d
! 11:
! 12: Notice: Uninitialized string offset: 1 in %sbug39304.php on line %d
! 13:
! 14: Notice: Uninitialized string offset: 0 in %sbug39304.php on line %d
! 15: I am alive
1.1 misho 16:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>