Re: Re: restore user opcode handler in PHP
| From: | Dmitry Stogov | Date: | Mon, 13 Feb 2012 09:11:20 +0000 |
| Subject: | Re: Re: restore user opcode handler in PHP | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-57819@lists.php.net to get a copy of this message | ||
I'm not familiar with Mac, but I saw such behavior on Linux very long time ago, when on PHP restart static variables were still keep values from old process.
Thanks. Dmitry.
On 02/13/2012 01:02 PM, Stas Malyshev wrote:
Hi!Hi Dmitry. the patch does work, in sense of actually restoring the handlers state when you call zend_set_user_opcode_handler() with original handler. the patch does not solve the basic problem of no re-initialization of static arrayes on mac.Could you please describe in more details what's going on on mac? It seems strange that dlopen() would not initialize vars - that'd be pretty bad behavior. Do you have an easy way to reproduce it?