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..f94c4ea929d4 --- /dev/null +++ b/reference/opcache/functions/opcache-is-script-cached-in-file-cache.xml @@ -0,0 +1,74 @@ + + + + + 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 03df796c2128..d18be80ee0e4 100644 --- a/reference/opcache/functions/opcache-is-script-cached.xml +++ b/reference/opcache/functions/opcache-is-script-cached.xml @@ -13,9 +13,10 @@ stringfilename - This function checks if a PHP script has been cached in OPCache. This can be + This function checks if a PHP script has been cached in OPCache in-memory cache. 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. + 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 +37,7 @@ &reftitle.returnvalues; - Returns &true; if filename is cached in OPCache, + Returns &true; if filename is cached in OPCache in-memory cache, &false; otherwise. @@ -46,6 +47,7 @@ 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..3a39223fc8cb --- /dev/null +++ b/reference/opcache/functions/opcache-jit-blacklist.xml @@ -0,0 +1,104 @@ + + + + + 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. + The function is specified using a Closure. + + + + + &reftitle.parameters; + + + + closure + + + + + + + + + + + &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 @@ + +