summaryrefslogtreecommitdiff
path: root/Zend/tests/offset_assign.phpt
blob: eebf63c4f370cecdd9b0ef71ca06dcc9aa1aa43d (plain)
1
2
3
4
5
6
7
8
9
10
11
--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