xref: /PHP-7.4/Zend/tests/bug67922.phpt (revision ae7e6633)
1--TEST--
2Bug #67922: Member function not found when dereferencing in write-context
3--FILE--
4<?php
5
6class C {
7	public function test() {
8		return new stdClass;
9	}
10}
11
12$b = new stdClass;
13$b->c = new C;
14$b->c->test()->d = 'str';
15
16?>
17===DONE===
18--EXPECT--
19===DONE===
20