xref: /PHP-7.3/Zend/tests/errmsg_005.phpt (revision 782352c5)
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