php-src/Zend/tests/offset_assign.phpt

12 lines
197 B
Plaintext
Raw Normal View History

2007-03-08 21:05:17 +00:00
--TEST--
Crash on $x['x']['y'] += 1 when $x is string
--FILE--
<?php
$x = "a";
$x['x']['y'] += 1;
echo "Done\n";
?>
--EXPECTF--
2007-03-08 21:05:17 +00:00
Fatal error: Cannot use string offset as an array in %s on line %d