diff options
Diffstat (limited to 'Zend/tests/errmsg_004.phpt')
-rw-r--r-- | Zend/tests/errmsg_004.phpt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Zend/tests/errmsg_004.phpt b/Zend/tests/errmsg_004.phpt new file mode 100644 index 0000000..e6d22d6 --- /dev/null +++ b/Zend/tests/errmsg_004.phpt @@ -0,0 +1,15 @@ +--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 |