summaryrefslogtreecommitdiff
path: root/Zend/tests/errmsg_005.phpt
blob: 31c924cbb35c417b47d4c4ddbd677d41c9468cb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
errmsg: can't use method return value in write context
--FILE--
<?php

class test {
	function foo() {
		return "blah";
	}
}

$t = new test;
$t->foo() = 1;

echo "Done\n";
?>
--EXPECTF--	
Fatal error: Can't use method return value in write context in %s on line %d