Skip to content

Instantly share code, notes, and snippets.

@dstogov
Created September 16, 2021 13:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dstogov/67de05a8cdf652bcc0a807062c8ba296 to your computer and use it in GitHub Desktop.
Save dstogov/67de05a8cdf652bcc0a807062c8ba296 to your computer and use it in GitHub Desktop.
diff --git a/ext/opcache/jit/zend_jit_x86.dasc b/ext/opcache/jit/zend_jit_x86.dasc
index 205d1bccb8..1c94e1a8e1 100644
--- a/ext/opcache/jit/zend_jit_x86.dasc
+++ b/ext/opcache/jit/zend_jit_x86.dasc
@@ -8271,7 +8271,7 @@ static int zend_jit_bool_jmpznz(dasm_State **Dst, const zend_op *opline, uint32_
return 1;
}
- if (op1_info & MAY_BE_REF) {
+ if (opline->op1_type == IS_CV && (op1_info & MAY_BE_REF)) {
| LOAD_ZVAL_ADDR FCARG1a, op1_addr
| ZVAL_DEREF FCARG1a, op1_info
op1_addr = ZEND_ADDR_MEM_ZVAL(ZREG_FCARG1, 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment