diff --git a/reference/opcache/functions/opcache-is-script-cached-in-file-cache.xml b/reference/opcache/functions/opcache-is-script-cached-in-file-cache.xml new file mode 100644 index 000000000000..21486d4841b7 --- /dev/null +++ b/reference/opcache/functions/opcache-is-script-cached-in-file-cache.xml @@ -0,0 +1,72 @@ + + + + + opcache_is_script_cached_in_file_cache + Tells whether a script is cached in OPCache file cache + + + + &reftitle.description; + + boolopcache_is_script_cached_in_file_cache + stringfilename + + + This function checks if a PHP script has been cached in OPCache. This can be + used to more easily detect the "warming" of the cache for a particular script. + This function only checks file cache cache, not in-memory cache. In order to + check in-memory cache, use opcache_is_script_cached. + + + + + &reftitle.parameters; + + + filename + + + The path to the PHP script to be checked. + + + + + + + + &reftitle.returnvalues; + + Returns &true; if filename is cached in OPCache, + &false; otherwise. + + + + + &reftitle.seealso; + + opcache_compile_file + opcache_is_script_cached + + + + diff --git a/reference/opcache/functions/opcache-is-script-cached.xml b/reference/opcache/functions/opcache-is-script-cached.xml index a850f1634ed9..24b1e935d00a 100644 --- a/reference/opcache/functions/opcache-is-script-cached.xml +++ b/reference/opcache/functions/opcache-is-script-cached.xml @@ -16,6 +16,8 @@ This function checks if a PHP script has been cached in OPCache. This can be used to more easily detect the "warming" of the cache for a particular script. This function only checks in-memory cache, not file cache. + In order to check file cache, use + opcache_is_script_cached_in_file_cache. @@ -36,7 +38,7 @@ &reftitle.returnvalues; - Returns &true; if filename is cached in OPCache, + Returns &true; if filename is cached in OPCache in-memory cache, &false; otherwise. @@ -45,6 +47,7 @@ &reftitle.seealso; opcache_compile_file + opcache_is_script_cached_in_file_cache diff --git a/reference/opcache/functions/opcache-jit-blacklist.xml b/reference/opcache/functions/opcache-jit-blacklist.xml new file mode 100644 index 000000000000..8cf6b3789bab --- /dev/null +++ b/reference/opcache/functions/opcache-jit-blacklist.xml @@ -0,0 +1,107 @@ + + + + + opcache_jit_blacklist + Blacklists a function from being JIT compiled + + + + &reftitle.description; + + void + opcache_jit_blacklist + + Closure + closure + + + + 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. + + + + + + &reftitle.parameters; + + + + 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. + + + + + + + + &reftitle.returnvalues; + + &return.void; + + + + + &reftitle.examples; + + + <function>opcache_jit_blacklist</function> + basic example + + + +]]> + + + + + + &reftitle.seealso; + + opcache_invalidate + opcache_reset + + + + diff --git a/reference/opcache/versions.xml b/reference/opcache/versions.xml index 9a5363ab1342..36aa3ea44739 100644 --- a/reference/opcache/versions.xml +++ b/reference/opcache/versions.xml @@ -9,6 +9,8 @@ + +