com php-src: VERIFY_RETURN_TYPE on references can't be eliminated: ext/opcache/Optimizer/dfa_pass.c

From: Date: Thu, 17 Nov 2016 07:41:42 +0000
Subject: com php-src: VERIFY_RETURN_TYPE on references can't be eliminated: ext/opcache/Optimizer/dfa_pass.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-95814@lists.php.net to get a copy of this message
Commit: f8f35d0d4e297fbed763e5da8467b9cc67ebd42b Author: Dmitry Stogov <dmitry@zend.com> Thu, 17 Nov 2016 10:41:42 +0300 Parents: 429bfbd4c23974a8bb1217ad06a6fa57b35d8f73 Branches: PHP-7.1 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f8f35d0d4e297fbed763e5da8467b9cc67ebd42b Log: VERIFY_RETURN_TYPE on references can't be eliminated Changed paths: M ext/opcache/Optimizer/dfa_pass.c Diff: diff --git a/ext/opcache/Optimizer/dfa_pass.c b/ext/opcache/Optimizer/dfa_pass.c index 63faaf6..b7a0f06 100644 --- a/ext/opcache/Optimizer/dfa_pass.c +++ b/ext/opcache/Optimizer/dfa_pass.c @@ -312,6 +312,10 @@ static inline zend_bool can_elide_return_type_check( zend_ssa_var_info *use_info = &ssa->var_info[ssa_op->op1_use]; zend_ssa_var_info *def_info = &ssa->var_info[ssa_op->op1_def]; + if (use_info->type & MAY_BE_REF) { + return 0; + } + /* A type is possible that is not in the allowed types */ if ((use_info->type & (MAY_BE_ANY|MAY_BE_UNDEF)) & ~(def_info->type & MAY_BE_ANY)) { return 0;

« previous php.cvs (#95814) next »