xref: /php-src/Zend/tests/errmsg/errmsg_005.phpt (revision 275f63e7)
1--TEST--
2errmsg: can't use method return value in write context
3--FILE--
4<?php
5
6class test {
7    function foo() {
8        return "blah";
9    }
10}
11
12$t = new test;
13$t->foo() = 1;
14
15echo "Done\n";
16?>
17--EXPECTF--
18Fatal error: Can't use method return value in write context in %s on line %d
19