mirror of
https://github.com/php/php-src.git
synced 2024-09-29 05:46:06 +00:00
14 lines
397 B
PHP
Executable File
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
|