xref: /PHP-5.5/Zend/tests/offset_assign.phpt (revision 1f4f33af)
1--TEST--
2Crash on $x['x']['y'] += 1 when $x is string
3--FILE--
4<?php
5$x = "a";
6$x['x']['y'] += 1;
7
8echo "Done\n";
9?>
10--EXPECTF--
11Warning: Illegal string offset 'x' in %soffset_assign.php on line %d
12
13Fatal error: Cannot use string offset as an array in %soffset_assign.php on line %d
14