php-src/Zend/tests/errmsg_004.phpt
2020-02-03 22:52:20 +01:00

16 lines
242 B
PHP

--TEST--
errmsg: can't use function return value in write context
--FILE--
<?php
function foo() {
return "blah";
}
foo() = 1;
echo "Done\n";
?>
--EXPECTF--
Fatal error: Can't use function return value in write context in %s on line %d