mirror of
https://github.com/php/php-src.git
synced 2024-12-13 11:54:45 +08:00
16 lines
239 B
PHP
16 lines
239 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
|