php-src/Zend/tests/errmsg_004.phpt
2007-02-07 11:10:32 +00:00

16 lines
240 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