mirror of
https://github.com/php/php-src.git
synced 2024-11-28 04:14:26 +08:00
16 lines
240 B
PHP
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
|