Bug #79005 [Opn]: php_admin_value unexpected behavior for php-fpm with validate_timestamps

From: Date: Tue, 11 Feb 2020 06:49:16 +0000
Subject: Bug #79005 [Opn]: php_admin_value unexpected behavior for php-fpm with validate_timestamps
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-225485@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79005&edit=1 ID: 79005 User updated by: iquito at gmx dot net Reported by: iquito at gmx dot net -Summary: opcache validate_timestamps does not work with enable_file_override +Summary: php_admin_value unexpected behavior for php-fpm with validate_timestamps Status: Open Type: Bug Package: opcache Operating System: Debian Buster -PHP Version: 7.4.1 +PHP Version: 7.4.2 Block user comment: N Private report: N New Comment: After more trials and tribulations validate_timestamps for opcache did not work at all anymore for me anymore. I have a php.ini with "opcache.validate_timestamps = 0" and overwrote that value for a testing pool in php-fpm with: php_admin_value[opcache.validate_timestamps] = 1 When I check phpinfo() it says that opcache.validate_timestamps is "On", but no script is ever reloaded when it has changed. When I set "opcache.validate_timestamps = 1" in php.ini and change it via "php_admin_value[opcache.validate_timestamps] = 0" for a php-fpm pool it seems to work as expected both for the pools which "unset" validate_timestamps and for those that do validate the timestamps. Previous Comments: ------------------------------------------------------------------------ [2019-12-20 08:59:44] iquito at gmx dot net Description: ------------ When using php-fpm with opcache.validate_timestamps turned on and opcache.enable_file_override turned on, no script is ever reloaded in PHP 7.4.1 (it works as expected in 7.3.*). I am using the following options: opcache.enable = 1 opcache.enable_cli = 0 opcache.validate_timestamps = 1 opcache.revalidate_freq = 0 opcache.use_cwd = 1 opcache.enable_file_override = 1 As soon as I set opcache.enable_file_override to 0, then validate_timestamps works again and changes to scripts are used by php-fpm. It does not matter what kind of script you are using - in my example, I used the following: <? //echo 'dada'; phpinfo(); And then I just changed the comment to the line with phpinfo, so the page should show "dada", but that does not happen. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=79005&edit=1

« previous php.bugs (#225485) next »