diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-01-10 11:47:35 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-01-10 11:48:10 +0100 |
commit | 0a2f6c55279c506dad65a6711567107d6aceec2d (patch) | |
tree | 5661941e37143453b729611c5d280673e10ab482 /Zend/zend_ast.c | |
parent | b79efec9947a72cdd587356bd0b1b6f9e4c8c27d (diff) | |
download | php-git-0a2f6c55279c506dad65a6711567107d6aceec2d.tar.gz |
Move undefined constant error into get_constant_ex
All the other error conditions are already handled in there, so
this one should be as well.
Diffstat (limited to 'Zend/zend_ast.c')
-rw-r--r-- | Zend/zend_ast.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Zend/zend_ast.c b/Zend/zend_ast.c index a27ca9be0a..c88e6658ed 100644 --- a/Zend/zend_ast.c +++ b/Zend/zend_ast.c @@ -531,8 +531,7 @@ ZEND_API int ZEND_FASTCALL zend_ast_evaluate(zval *result, zend_ast *ast, zend_c if (UNEXPECTED(zv == NULL)) { ZVAL_UNDEF(result); - ret = zend_use_undefined_constant(name, ast->attr, result); - break; + return FAILURE; } ZVAL_COPY_OR_DUP(result, zv); break; |