[php-src] PR #16979: opcache_is_script_cached(string $filename, bool $file_cache = false)

From: Date: Thu, 28 Nov 2024 10:47:06 +0000
Subject: [php-src] PR #16979: opcache_is_script_cached(string $filename, bool $file_cache = false)
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-29820@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/16979 Author: iamacarpet A potential change to opcache_is_script_cached(...) that allows checking the file cache instead of SHM. It's adding a new parameter, bool $file_cache = false, defaulting to false so the default / existing behaviour remains the same: when the second parameter is true, it'll check JUST the file cache, not SHM. This should give us a better ability to test things relating to file caching, and hopefully enable some better unit testing for use with opcache.file_cache_read_only. There are a couple of bits missing, like updating the docs, but I wanted to float the idea first. @dstogov, @iluuu1994 , @arnaud-lb , @nielsdos : what do you think?

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