|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2019-11-28 07:49 UTC] lsukaca at gmail dot com
[2019-12-13 10:10 UTC] nikic@php.net
-Status: Open
+Status: Feedback
[2019-12-13 10:10 UTC] nikic@php.net
[2019-12-13 14:19 UTC] bugreport at example dot com
[2019-12-13 14:21 UTC] nikic@php.net
-Status: Feedback
+Status: Open
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 00:00:02 2025 UTC |
Description: ------------ that below is a simplified version of our 'opcache.preload' with no active code our build-environemt is calling 4 cli scripts and a forground httpd using the same php.ini under the same user and global_preload_msg() is called multiple times with an arbitary string for $preload_file sometimes this happens only one time, sometimes every start of a cli-script triggers global_preload_msg() in normal operations the function receives the return value of opcache_compile_file and the full path compiled file besides that strange calls of global_preload_msg() everything is working fine meaning all invocations of the cli-scripts and the webserver are logging success for each expected call of opcache_compile_file() so the question why global_preload_msg() is executed at all even when the 'opcache.preload' only contains the function itself which so couldn't fire for now i wrapped a file_exists() around the whole function code to silence it that is pretty new and didn't happen with older git-snapshots Test script: --------------- <?php declare(strict_types=1); function global_preload_msg(string $preload_file, bool $status): void { if($status === FALSE ) { switch($status) { case TRUE: $status_out = 'OK'; break; case FALSE: $status_out = 'FAILED'; break; } error_log("PHP-PRELOAD " . strtoupper(PHP_SAPI) . ": $status_out '" . str_replace(__DIR__, '', $preload_file) . "'"); } } ?> Expected result: ---------------- empty error log Actual result: -------------- error_log after the code-coverage run: [27-Nov-2019 12:21:05 UTC] PHP-PRELOAD CLI: FAILED '07f6aea80a' [27-Nov-2019 12:21:05 UTC] PHP-PRELOAD CLI: FAILED '8903342d78' [27-Nov-2019 12:21:06 UTC] PHP-PRELOAD CLI: FAILED '0337428158' [27-Nov-2019 12:21:07 UTC] PHP-PRELOAD CLI: FAILED '3afe1bdd1d'