mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
12 lines
290 B
PHP
Executable File
12 lines
290 B
PHP
Executable File
--TEST--
|
|
Bug #39304 (Segmentation fault with list unpacking of string offset)
|
|
--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
|