mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
16 lines
242 B
PHP
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
|