You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I installed the latest movim from the master branch as explained here, my PHP Version is:
www-data@machine:/usr/share/movim$ php -v
PHP 8.1.17 (cli) (built: Mar 16 2023 14:37:38) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.17, Copyright (c) Zend Technologies
with Zend OPcache v8.1.17, Copyright (c), by Zend Technologies
However somehow the compileOpcache is not running properly. I always get the following error log when starting the damon.php. I found out that the error reporting is disabled for the opcache compile process.
To get the Error I changed the function temporarely from:
/**
* Compile main files in Opcache
*/
function compileOpcache()
{
error_reporting(0);
foreach (listOpcacheCompilableFiles() as $file) {
opcache_invalidate($file, true);
yield @opcache_compile_file($file);
}
error_reporting(1);
}
to
/**
* Compile main files in Opcache
*/
function compileOpcache()
{
// error_reporting(0);
foreach (listOpcacheCompilableFiles() as $file) {
opcache_invalidate($file, true);
// yield @opcache_compile_file($file);
opcache_compile_file($file);
}
// error_reporting(1);
}
and did a manual compile via php daemon.php compileOpcache. This is the output: https://termbin.com/1e4e
The text was updated successfully, but these errors were encountered:
according to the comment in opcache_invalidate
it will trigger a recompile. so wouldn't it be cleaner to check if the file is already in cache via opcache_is_script_cached, and if so invalidate and otherwise compile?
I mean s.th like this:
/** * Compile main files in Opcache */functioncompileOpcache()
{
error_reporting(0);
foreach (listOpcacheCompilableFiles() as$file) {
if (opcache_is_script_cached($file)) {
opcache_invalidate($file, true);
} else {
yield @opcache_compile_file($file);
}
}
error_reporting(1);
}
Hi, I installed the latest movim from the master branch as explained here, my PHP Version is:
However somehow the compileOpcache is not running properly. I always get the following error log when starting the damon.php. I found out that the error reporting is disabled for the opcache compile process.
To get the Error I changed the function temporarely from:
to
and did a manual compile via
php daemon.php compileOpcache
. This is the output: https://termbin.com/1e4eThe text was updated successfully, but these errors were encountered: