Skip to content

Instantly share code, notes, and snippets.

@dstogov
Last active September 21, 2021 10:31
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/ac19d0117da7724bbef752ae2c4119a8 to your computer and use it in GitHub Desktop.
Save dstogov/ac19d0117da7724bbef752ae2c4119a8 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 40efcef2b9..9d15aadcf5 100644
--- a/ext/opcache/jit/zend_jit_x86.dasc
+++ b/ext/opcache/jit/zend_jit_x86.dasc
@@ -9866,7 +9866,7 @@ static int zend_jit_do_fcall(dasm_State **Dst, const zend_op *opline, const zend
}
}
- if (!trace && op_array == &func->op_array
+ if (GCC_GLOBAL_REGS && !trace && op_array == &func->op_array
&& num_args >= op_array->required_num_args) {
/* recursive call */
if (ZEND_OBSERVER_ENABLED) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment