summaryrefslogtreecommitdiff
path: root/Zend/tests/varSyntax/writeToTempExpr.phpt
blob: daeaf2493811c9b422bdb7ebb7de734adc58dfb5 (plain)
1
2
3
4
5
6
7
8
9
10
--TEST--
Writing to a temporary expression is not allowed
--FILE--
<?php

[0, 1][0] = 1;

?>
--EXPECTF--
Fatal error: Cannot use temporary expression in write context in %s on line %d