Re: encode php scripts with opcache compatibility

From: Date: Tue, 27 May 2014 09:20:47 +0000
Subject: Re: encode php scripts with opcache compatibility
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-74516@lists.php.net to get a copy of this message
Hi! On 23 May 2014 15:52, Nicolai Scheer <nicolai.scheer@gmail.com> wrote: > > [...] > > > It seems, as if the opcode returned from zend_compile_string differs from > the usual zend_compile and this crashes the engine when this opcode is > executed again (fetched from opache). Also, there are memory leaks reported > for the function above (zend_opcode.c and plain_wrapper.c), maybe I'm just > doing it wrong? > > Any insight is very appreciated. I know this approach is stupid simple, > but I'm just trying to figure out which way I could proceed and how stuff > works down there. > > Thanks for any help! > > I filed a bug report for blenc https://bugs.php.net/bug.php?id=67344. I think it's the same issue I'm experiencing. From what I've learned so far, it seems that I'd have to fix some pointers inside the opcode structure. On the first run, everything is in place and works as expected, but the seconds run, being served from opcache is problematic. Can anybody give me a hint where to start? Thanks! Greetings Nico

« previous php.internals (#74516) next »