From: Nikita Popov Date: Sat, 19 Jul 2014 11:21:12 +0000 (+0200) Subject: Fix for with empty expression lists X-Git-Tag: POST_AST_MERGE^2~121 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6513e959d6dc3fa58d1f9746bbd710d57e3184a4;p=php Fix for with empty expression lists --- diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index e30bb4d123..f5734563a0 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -5653,7 +5653,12 @@ void zend_compile_do_while(zend_ast *ast TSRMLS_DC) { void zend_compile_expr_list(znode *result, zend_ast *ast TSRMLS_DC) { zend_uint i; - result->op_type = IS_UNUSED; + result->op_type = IS_CONST; + ZVAL_TRUE(&result->u.constant); + + if (!ast) { + return; + } for (i = 0; i < ast->children; ++i) { zend_ast *expr_ast = ast->child[i];