Bug #72112 [NEW]: Opcache corruption after opcache_reset()
| From: | thomas dot colomb at dailymotion dot com | Date: | Wed, 27 Apr 2016 09:40:58 +0000 |
| Subject: | Bug #72112 [NEW]: Opcache corruption after opcache_reset() | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-200792@lists.php.net to get a copy of this message | ||
From: thomas dot colomb at dailymotion dot com
Operating system: Ubuntu 14.04
PHP version: 7.0.5
Package: opcache
Bug Type: Bug
Bug description:Opcache corruption after opcache_reset()
Description:
------------
After calling opcache_reset() function we encounter some weird errors.
It happens randomly on servers (10 of 400 servers production)
Some letter a replaced by others, Class seems to be already declared..
etc
Example of errors triggered after opcache_reset():
* Unknown column 'saken' in 'field list' => in this example t is
replaced by s in the sql query. This can be really a big problem if in
example on an update query a w of where is replaced by a ; and this will
update whole table
* PHP Fatal error: Cannot declare class ZZZZZ, because the name is
already in use in /dir/dir/z.php on line 0
* PHP Fatal error: Class XXX contains 1 abstract method and must
therefore be declared abstract or implement the remaining methods
(YYY::funczzz) in /dir/dir/x.php on line 20
* PHP Fatal error: Uncaught Error: Call to undefined method
XXX::func1() in /dir/dir/x.php:218
It seems related to #71574 but it's still not corrected.
php -v
PHP 7.0.5-2+deb.sury.org~trusty+1 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend
Technologies
x@server:~# lsb_release --id
Distributor ID: Ubuntu
x@server:~# lsb_release -r
Release: 14.04
--
Edit bug report at https://bugs.php.net/bug.php?id=72112&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=72112&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=72112&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=72112&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=72112&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=72112&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=72112&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=72112&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=72112&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=72112&r=support
Expected behavior: https://bugs.php.net/fix.php?id=72112&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=72112&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=72112&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=72112&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72112&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=72112&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=72112&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=72112&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=72112&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=72112&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=72112&r=mysqlcfg