[php-src] PR #18671: Fix opcache revalidation in CLI

From: Date: Tue, 27 May 2025 12:46:26 +0000
Subject: [php-src] PR #18671: Fix opcache revalidation in CLI
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-31826@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/18671 Author: Sannis It looks like opcache was initially designed with short-lived requests in mind, so when checking if the file should be re-validated, the code uses 'request time' instead of 'now', where request time is calculated once on the script startup. Which basically means that in CLI this check will never succeed. This PR containing the patch to fix this issue covered with a test that passes in this branch but not in PHP-8.3. The issue itself is older, but I rebased the patch to PHP-8.3 as mentioned in CONTRIBUTING doc. Not sure if I must fill the issue separately, but will be happy to do if needed.

« previous php.git-pulls (#31826) next »