From 3521a71646559c772affb031d2db1afdf1ceefbc Mon Sep 17 00:00:00 2001 From: Adam Harvey Date: Wed, 25 Sep 2013 16:11:18 +0000 Subject: [PATCH] Add initial documentation for opcache_compile_file(). git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@331490 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../functions/opcache-compile-file.xml | 84 +++++++++++++++++++ .../opcache/functions/opcache-invalidate.xml | 1 + reference/opcache/versions.xml | 1 + 3 files changed, 86 insertions(+) create mode 100644 reference/opcache/functions/opcache-compile-file.xml diff --git a/reference/opcache/functions/opcache-compile-file.xml b/reference/opcache/functions/opcache-compile-file.xml new file mode 100644 index 0000000000..6cc13a7cab --- /dev/null +++ b/reference/opcache/functions/opcache-compile-file.xml @@ -0,0 +1,84 @@ + + + + + + opcache_compile_file + Compiles and caches a PHP script without executing it + + + + &reftitle.description; + + booleanopcache_compile_file + stringfile + + + This function compiles a PHP script and adds it to the opcode cache without + executing it. This can be used to prime the cache after a Web server + restart by pre-caching files that will be included in later requests. + + + + + &reftitle.parameters; + + + file + + + The path to the PHP script to be compiled. + + + + + + + + &reftitle.returnvalues; + + Returns &true; if file was compiled successfully + &return.falseforfailure;. + + + + + &reftitle.errors; + + If file cannot be loaded or compiled, an error of + level E_WARNING is generated. You may use + @ to suppress this + warning. + + + + + &reftitle.seealso; + + + opcache_invalidate + + + + + + diff --git a/reference/opcache/functions/opcache-invalidate.xml b/reference/opcache/functions/opcache-invalidate.xml index 887850674a..dbd9cacae5 100644 --- a/reference/opcache/functions/opcache-invalidate.xml +++ b/reference/opcache/functions/opcache-invalidate.xml @@ -58,6 +58,7 @@ &reftitle.seealso; + opcache_compile_file opcache_reset diff --git a/reference/opcache/versions.xml b/reference/opcache/versions.xml index 59baba476f..30c2333d96 100644 --- a/reference/opcache/versions.xml +++ b/reference/opcache/versions.xml @@ -5,6 +5,7 @@ --> +