mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
Fix bug #67922
This commit is contained in:
parent
389d285973
commit
ae7e663330
19
Zend/tests/bug67922.phpt
Normal file
19
Zend/tests/bug67922.phpt
Normal file
@ -0,0 +1,19 @@
|
||||
--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===
|
@ -4369,7 +4369,7 @@ void zend_compile_method_call(znode *result, zend_ast *ast, uint32_t type TSRMLS
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user