--- /dev/null
+--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===
if (is_this_fetch(obj_ast)) {
obj_node.op_type = IS_UNUSED;
} else {
- zend_compile_var(&obj_node, obj_ast, type TSRMLS_CC);
+ zend_compile_expr(&obj_node, obj_ast TSRMLS_CC);
}
zend_compile_expr(&method_node, method_ast TSRMLS_CC);