com php-src: Fixed Zend/tests/bug70785.phpt on builds wothout global regesters: Zend/zend_execute.c

From: Date: Tue, 08 Oct 2019 14:08:59 +0000
Subject: com php-src: Fixed Zend/tests/bug70785.phpt on builds wothout global regesters: Zend/zend_execute.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-108807@lists.php.net to get a copy of this message
Commit: 31c3b0c7cc38453763e8f8d33baa214de906d60f Author: Dmitry Stogov <dmitry@zend.com> Tue, 8 Oct 2019 17:08:59 +0300 Parents: cffa81e438a5639d50683c8b49b1cf38bfef2143 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=31c3b0c7cc38453763e8f8d33baa214de906d60f Log: Fixed Zend/tests/bug70785.phpt on builds wothout global regesters Bugs: https://bugs.php.net/70785 Changed paths: M Zend/zend_execute.c Diff: diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index a860c085604..14e52b390cd 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -4253,7 +4253,9 @@ static zend_never_inline int ZEND_FASTCALL zend_quick_check_constant( OPLINE = opline; \ ZEND_VM_CONTINUE() #define ZEND_VM_SMART_BRANCH(_result, _check) do { \ - if (EXPECTED((opline+1)->opcode == ZEND_JMPZ)) { \ + if ((_check) && UNEXPECTED(EG(exception))) { \ + OPLINE = EX(opline); \ + } else if (EXPECTED((opline+1)->opcode == ZEND_JMPZ)) { \ if (_result) { \ ZEND_VM_SET_NEXT_OPCODE(opline + 2); \ } else { \ @@ -4269,9 +4271,6 @@ static zend_never_inline int ZEND_FASTCALL zend_quick_check_constant( ZVAL_BOOL(EX_VAR(opline->result.var), _result); \ ZEND_VM_SET_NEXT_OPCODE(opline + 1); \ } \ - if ((_check) && UNEXPECTED(EG(exception))) { \ - OPLINE = EX(opline); \ - } \ ZEND_VM_CONTINUE(); \ } while (0) #define ZEND_VM_SMART_BRANCH_JMPZ(_result, _check) do { \

« previous php.cvs (#108807) next »