1
0
mirror of https://github.com/php/php-src.git synced 2026-04-04 22:52:40 +02:00

Fix assign to self detection

This commit is contained in:
Nikita Popov
2019-01-27 20:50:08 +01:00
parent 3a0fc00424
commit b93aefc1a7

View File

@@ -2611,7 +2611,7 @@ zend_bool zend_is_assign_to_self(zend_ast *var_ast, zend_ast *expr_ast) /* {{{ *
return 0;
}
while (zend_is_variable_or_call(var_ast)) {
while (zend_is_variable(var_ast) && var_ast->kind != ZEND_AST_VAR) {
var_ast = var_ast->child[0];
}