Bug #69995 [NEW]: Opcache no longer works

From: Date: Sun, 05 Jul 2015 00:29:57 +0000
Subject: Bug #69995 [NEW]: Opcache no longer works
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-194123@lists.php.net to get a copy of this message
From: chx Operating system: Unix PHP version: 5.6.10 Package: opcache Bug Type: Bug Bug description:Opcache no longer works Description: ------------ opcache seems broken, plain and simple. The INI settings are the same to PHP 5.5 where the test script worked. PHP 5.6.10-1+deb.sury.org~trusty+1 (cli) Copyright (c) 1997-2015 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies When strace'ing we have found that after the stat to test.php working versions issued fcntl(3, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=0, len=1}) = 0 fcntl(3, F_SETLK, {type=F_UNLCK, whence=SEEK_SET, start=0, len=1}) = 0 where open("/tmp/.ZendSem.amvda2", O_RDWR|O_CREAT|O_EXCL, 0600) = 3 but this more seems a corollary than a cause, still I thought I'll mention it. Test script: --------------- <?php var_dump(opcache_compile_file('test.php')); var_dump(opcache_is_script_cached("test.php")); $scripts = opcache_get_status(TRUE); var_dump($scripts); ?> test.php can be either empty or just <?php . It also broke https://www.drupal.org/files/issues/2513326_34.patch (but that's a hack) I got a report it working with 5.6.4; I haven't run the reproduction scripts with 5.6.4. -- Edit bug report at https://bugs.php.net/bug.php?id=69995&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69995&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69995&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69995&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=69995&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=69995&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=69995&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=69995&r=needscript Try newer version: https://bugs.php.net/fix.php?id=69995&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=69995&r=support Expected behavior: https://bugs.php.net/fix.php?id=69995&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=69995&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=69995&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=69995&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69995&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=69995&r=dst IIS Stability: https://bugs.php.net/fix.php?id=69995&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=69995&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=69995&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=69995&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=69995&r=mysqlcfg

« previous php.bugs (#194123) next »