php-src/Zend/tests/bug39304.phpt
2010-07-16 11:44:30 +00:00

14 lines
397 B
PHP
Executable File

--TEST--
Bug #39304 (Segmentation fault with list unpacking of string offset)
--SKIPIF--
<?php if (version_compare(zend_version(), '2.4.0', '>=')) die('skip ZendEngine 2.4 needed'); ?>
--FILE--
<?php
$s = "";
list($a, $b) = $s[0];
?>
--EXPECTF--
Notice: Uninitialized string offset: 0 in %sbug39304.php on line 3
Fatal error: Cannot use string offset as an array in %sbug39304.php on line 3