diff options
Diffstat (limited to 'Zend/tests/offset_assign.phpt')
-rw-r--r-- | Zend/tests/offset_assign.phpt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Zend/tests/offset_assign.phpt b/Zend/tests/offset_assign.phpt index d4c56b30c8..d2e33cafbf 100644 --- a/Zend/tests/offset_assign.phpt +++ b/Zend/tests/offset_assign.phpt @@ -1,14 +1,14 @@ --TEST-- -Crash on $x['x']['y'] += 1 when $x is string +Crash on $x['2x']['y'] += 1 when $x is string --FILE-- <?php $x = "a"; -$x['x']['y'] += 1; +$x['2x']['y'] += 1; echo "Done\n"; ?> --EXPECTF-- -Warning: Illegal string offset "x" in %s on line %d +Warning: Illegal string offset "2x" in %s on line %d Fatal error: Uncaught Error: Cannot use string offset as an array in %soffset_assign.php:%d Stack trace: |