mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
12 lines
198 B
PHP
12 lines
198 B
PHP
--TEST--
|
|
Crash on $x['x']['y'] += 1 when $x is string
|
|
--FILE--
|
|
<?php
|
|
$x = "a";
|
|
$x['x']['y'] += 1;
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot use string offset as an array in %s on line %d
|