php-src/Zend/tests/bug67922.phpt

20 lines
261 B
Plaintext
Raw Normal View History

2014-08-28 22:18:38 +00:00
--TEST--
Bug #67922: Member function not found when dereferencing in write-context
--FILE--
<?php
class C {
public function test() {
return new stdClass;
}
}
$b = new stdClass;
$b->c = new C;
$b->c->test()->d = 'str';
?>
===DONE===
--EXPECT--
===DONE===