mirror of
https://github.com/php/php-src.git
synced 2024-12-19 15:00:15 +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
|