[php-src] Issue #13989: PHP checks the filesystem for file existing even if available in opcache and all opcache validations are disabled

From: Date: Wed, 17 Apr 2024 14:15:47 +0000
Subject: [php-src] Issue #13989: PHP checks the filesystem for file existing even if available in opcache and all opcache validations are disabled
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-246776@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/13989 Author: dkarlovi ### Description The following code: ``` opcache.enable = 1 opcache.enable_cli = 1 opcache.file_update_protection = 0 opcache.validate_timestamps = 0 opcache.validate_permission = 0 opcache.validate_root = 0 opcache.file_cache = "/var/cache/opcache" opcache.file_cache_only = 0 opcache.file_cache_consistency_checks = 0 ``` will still trigger "File doesn't exist" even though opcache is correctly prepopulated. If I create an empty folder with an empty file, it works as expected. See: https://github.com/dkarlovi/docker-php-opcache-only/blob/main/Dockerfile#L15 Try it like here: https://github.com/dkarlovi/docker-php-opcache-only/blob/main/README.md ### PHP Version PHP 8.2 ### Operating System Docker PHP image

« previous php.bugs (#246776) next »