Bug #71621 [NEW]: opcache_reset sometimes returns false

From: Date: Thu, 18 Feb 2016 08:45:03 +0000
Subject: Bug #71621 [NEW]: opcache_reset sometimes returns false
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-199314@lists.php.net to get a copy of this message
From:             sts at ono dot at
Operating system: Debian/Jessie
PHP version:      5.6.18
Package:          opcache
Bug Type:         Bug
Bug description:opcache_reset sometimes returns false

Description:
------------
There seems to be a race condition under which opcache_reset() returns
false, although the opcache extension is loaded.

Make sure the opcache extension is loaded. Create the Test script on a
webserver and call it a couple of times. In most cases it will return
true, but sometimes it returns false.

Please note I reproduced this on a server where requests are actually
coming in.

This also happens during our deployment, where we call opcache_reset()
only once. It also happened among projects with different codebases
(Laravel, ZF, self coded), so it doesn't seem to be related to our code.


Test script:
---------------
<?php echo opcache_reset();


-- 
Edit bug report at https://bugs.php.net/bug.php?id=71621&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=71621&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=71621&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=71621&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=71621&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=71621&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=71621&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=71621&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=71621&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=71621&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=71621&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=71621&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=71621&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=71621&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71621&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=71621&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=71621&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=71621&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=71621&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=71621&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=71621&r=mysqlcfg



Thread (5 messages)

« previous php.bugs (#199314) next »