update page now
PHP 8.5.2 Released!

opcache_jit_blacklist

(PHP 8 >= 8.4.0)

opcache_jit_blacklistBlacklists a function from being JIT compiled

说明

opcache_jit_blacklist( Closure $closure ): void

This function blacklists a particular function from being JIT compiled when Tracing JIT is in use. The function is specified using a Closure.

警告

Any parts of the function that were already JIT compiled remain unaffected and will still be JIT compiled.

参数

closure
The function to blacklist, represented as a first class callable. It is also possible to pass an anonymous function, in which case the anonymous function itself is blacklisted.

返回值

没有返回值。

示例

示例 #1 opcache_jit_blacklist() basic example

<?php
function foo() {
$x = 1;
$x += 0;
++
$x;
var_dump($x);
}
opcache_jit_blacklist(foo(...));
foo();
?>

参见

添加备注

用户贡献的备注

此页面尚无用户贡献的备注。
To Top