com php-src: Merge branch 'PHP-7.0': Zend/zend_compile.c

From: Date: Thu, 21 Apr 2016 19:51:50 +0000
Subject: com php-src: Merge branch 'PHP-7.0': Zend/zend_compile.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-91814@lists.php.net to get a copy of this message
Commit: 261eb5cc891735706d6c4c2f6fd43b1604751e39 Author: Bob Weinand <bobwei9@hotmail.com> Thu, 21 Apr 2016 21:51:50 +0200 Parents: 55f01863358d1d34d6abf1f37c27261208cfe965 69efeb1223916b73cc767d4c17069c8bee49365e Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=261eb5cc891735706d6c4c2f6fd43b1604751e39 Log: Merge branch 'PHP-7.0' Changed paths: MM Zend/zend_compile.c Diff: diff --cc Zend/zend_compile.c index af2d2e9,fb196f0..c99cb68 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@@ -7864,11 -7385,13 +7864,15 @@@ void zend_eval_const_expr(zend_ast **as return; } - zend_ct_eval_unary_pm(&result, ast->kind, zend_ast_get_zval(ast->child[0])); + if (!zend_try_ct_eval_unary_pm(&result, ast->kind, zend_ast_get_zval(ast->child[0]))) { + return; + } break; case ZEND_AST_COALESCE: + /* Set isset fetch indicator here, opcache disallows runtime altering of the AST */ + if (ast->child[0]->kind == ZEND_AST_DIM) { + ast->child[0]->attr = ZEND_DIM_IS; + } zend_eval_const_expr(&ast->child[0]); if (ast->child[0]->kind != ZEND_AST_ZVAL) {

« previous php.cvs (#91814) next »