mirror of
https://github.com/php/php-src.git
synced 2024-09-24 11:27:28 +00:00
20 lines
261 B
Plaintext
20 lines
261 B
Plaintext
|
--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===
|