array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'fr', ), 'this' => array ( 0 => 'function.opcache-compile-file.php', 1 => 'opcache_compile_file', ), 'up' => array ( 0 => 'ref.opcache.php', 1 => 'Fonctions OPcache', ), 'prev' => array ( 0 => 'ref.opcache.php', 1 => 'Fonctions OPcache', ), 'next' => array ( 0 => 'function.opcache-get-configuration.php', 1 => 'opcache_get_configuration', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'fr', 'path' => 'reference/opcache/functions/opcache-compile-file.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5 >= 5.5.5, PHP 7, PHP 8, PECL ZendOpcache > 7.0.2)
opcache_compile_file — Compile et met en cache un script PHP sans l'exécuter
Cette fonction compile un script PHP et l'ajoute au cache d'opcode sans l'exécuter. Ceci peut être utilisé pour remplir un cache après un redémarrage de serveur en précachant les fichiers qui vont être amenés à être utilisés.
filename
Le chemin vers le fichier PHP à compiler et mettre en cache.
Retourne true
si filename
a été compilé avec succès
ou false
si une erreur survient.