Bug #75670 [NEW]: opcache_reset problem with file_cache
| From: | support at lenetnet dot ru | Date: | Tue, 12 Dec 2017 07:53:13 +0000 |
| Subject: | Bug #75670 [NEW]: opcache_reset problem with file_cache | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-213066@lists.php.net to get a copy of this message | ||
From: support at lenetnet dot ru
Operating system: Debian 8
PHP version: 7.1.12
Package: opcache
Bug Type: Bug
Bug description:opcache_reset problem with file_cache
Description:
------------
The problem is seen in 7.1.12 and 7.2.0.
Php.ini has:
zend_extension="/opt/rh/php71/lib/php/extensions/no-debug-non-zts-20160303/opcache.so"
opcache.enable=1
opcache.memory_consumption=128
opcache.max_accelerated_files=4000
opcache.revalidate_freq = 300
opcache.validate_timestamps=0
;opcache.file_cache= ...
If opcache.file_cache is uncommented and opcache.validate_timestamps=0
then opcache_reset() has no effect. There are to scripts: test.php and
reset.php.
test.php:
<?
echo "Hi";
?>
reset.php:
<?
opcache_reset();
?>
When we change for example Hi to Hello, after that we execute reset.php
and test.php from browser. After we've done that there are no changes
to issue of test.php. It shows steel Hi.
If we comment opcache.file_cache or set opcache.validate_timestamps=1
then opcache_reset works fine
--
Edit bug report at https://bugs.php.net/bug.php?id=75670&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75670&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75670&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75670&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=75670&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=75670&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=75670&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=75670&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=75670&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=75670&r=support
Expected behavior: https://bugs.php.net/fix.php?id=75670&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=75670&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=75670&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=75670&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75670&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=75670&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=75670&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=75670&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75670&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=75670&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=75670&r=mysqlcfg