summaryrefslogtreecommitdiff
path: root/Zend/tests/builtin_in_write_context_error1.phpt
blob: eed03cc3c1a0909653ff15c3e6fb424ce282d733 (plain)
1
2
3
4
5
6
7
8
9
10
--TEST--
Cannot use built-in functions in write context (assignment)
--FILE--
<?php

strlen("foo")[0] = 1;

?>
--EXPECTF--
Fatal error: Cannot use result of built-in function in write context in %s on line %d