php-src/Zend/tests/bug67922.phpt
2020-02-03 22:52:20 +01:00

20 lines
273 B
PHP

--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===