Annotation of embedaddon/php/Zend/tests/bug39304_2_4.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #39304 (Segmentation fault with list unpacking of string offset)
                      3: --SKIPIF--
                      4: <?php if (version_compare(zend_version(), '2.4.0', '<')) die('skip ZendEngine 2.4 needed'); ?>
                      5: --FILE--
                      6: <?php 
                      7:   $s = "";
                      8:   list($a, $b) = $s[0];
                      9:   var_dump($a,$b);
                     10: ?>
                     11: --EXPECTF--
                     12: Notice: Uninitialized string offset: 0 in %sbug39304_2_4.php on line %d
                     13: 
                     14: Notice: Uninitialized string offset: 1 in %sbug39304_2_4.php on line %d
                     15: 
                     16: Notice: Uninitialized string offset: 0 in %sbug39304_2_4.php on line %d
                     17: string(0) ""
                     18: string(0) ""

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>