mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fix regression on systems built without JIT (#16024)
regressing commit: 654b787ee1
This was called if JIT was enabled or not. If not enabled, it'll result
in an undeclared function warning and maybe a bad time in the linker.
Gate the meat of this PHP-side function on if JIT is enabled (but keep
it existing so PHP userland code works with or without JIT, OFC).
This commit is contained in:
parent
3293fafa27
commit
f5f05e886e
1 changed files with 2 additions and 0 deletions
|
@ -934,10 +934,12 @@ ZEND_FUNCTION(opcache_jit_blacklist)
|
||||||
RETURN_THROWS();
|
RETURN_THROWS();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_JIT
|
||||||
const zend_function *func = zend_get_closure_method_def(Z_OBJ_P(closure));
|
const zend_function *func = zend_get_closure_method_def(Z_OBJ_P(closure));
|
||||||
if (ZEND_USER_CODE(func->type)) {
|
if (ZEND_USER_CODE(func->type)) {
|
||||||
zend_jit_blacklist_function((zend_op_array *)&func->op_array);
|
zend_jit_blacklist_function((zend_op_array *)&func->op_array);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
ZEND_FUNCTION(opcache_compile_file)
|
ZEND_FUNCTION(opcache_compile_file)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue