From 6513e959d6dc3fa58d1f9746bbd710d57e3184a4 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Sat, 19 Jul 2014 13:21:12 +0200 Subject: [PATCH] Fix for with empty expression lists --- Zend/zend_compile.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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]; -- 2.50.1