Skip to content

Commit b93aefc

Browse files
committed
Fix assign to self detection
1 parent 3a0fc00 commit b93aefc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2611,7 +2611,7 @@ zend_bool zend_is_assign_to_self(zend_ast *var_ast, zend_ast *expr_ast) /* {{{ *
26112611
return 0;
26122612
}
26132613

2614-
while (zend_is_variable_or_call(var_ast)) {
2614+
while (zend_is_variable(var_ast) && var_ast->kind != ZEND_AST_VAR) {
26152615
var_ast = var_ast->child[0];
26162616
}
26172617

0 commit comments

Comments
 (0)