Bug #65338 [Com]: Enabling both php_opcache and php_wincache AVs on shutdown
| From: | me at laurinkeithdavis dot com | Date: | Fri, 26 Jul 2013 21:07:09 +0000 |
| Subject: | Bug #65338 [Com]: Enabling both php_opcache and php_wincache AVs on shutdown | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-180509@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=65338&edit=1
ID: 65338
Comment by: me at laurinkeithdavis dot com
Reported by: ericsten@php.net
Summary: Enabling both php_opcache and php_wincache AVs on
shutdown
Status: Feedback
Type: Bug
Package: Reproducible crash
Operating System: Windows
PHP Version: 5.5.1
Block user comment: N
Private report: N
New Comment:
I can confirm that this patch works as well.
https://bugs.php.net/bug.php?id=65247
Previous Comments:
------------------------------------------------------------------------
[2013-07-26 16:48:39] phpdev at ehrhardt dot nl
@Anatol: Xinchen ran into the same problem while combining APC usercache with OPcache opcode cache.
See
http://svn.php.net/viewvc?view=revision&revision=330859
He solved it by disabling interned_string.
@Eric: I can confirm your patch works. Tested it as well under X86 as X64.
------------------------------------------------------------------------
[2013-07-26 16:04:36] ericsten@php.net
ab@php.net said
> What is the catch/sense of using both at the same time?
Wincache provides a file cache, session cache, user property cache as well as an opcode cache.
Further, it's possible to disable the opcode cache.
On PHP5.5, we (Wincache support folks) expect customers to enable the Zend opcache (because
it's in 'core', and probably does more optimizing than Wincache does), but continue
to use Wincache for file, session and user cache.
------------------------------------------------------------------------
[2013-07-26 10:58:23] ab@php.net
What is the catch/sense of using both at the same time? Both are opcaches and can
cross each other in many other hooks, most important replacing zend_compile_file.
It's beyond what happens, wincache replaces zend_compile_file with its own, followed by
opcache replacing it with its own. Or vice versa. What happens to user trying to use
the first loaded module then?
------------------------------------------------------------------------
[2013-07-26 07:01:23] ab@php.net
Related To: Bug #65247
------------------------------------------------------------------------
[2013-07-25 17:30:56] ericsten@php.net
The following patch has been added/updated:
Patch Name: zend_interned_strings_shutdown_AV
Revision: 1374773456
URL: https://bugs.php.net/patch-display.php?bug=65338&patch=zend_interned_strings_shutdown_AV&revision=1374773456
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=65338
--
Edit this bug report at https://bugs.php.net/bug.php?id=65338&edit=1