Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74516 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4088 invoked from network); 27 May 2014 09:20:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 May 2014 09:20:51 -0000 Authentication-Results: pb1.pair.com header.from=nicolai.scheer@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nicolai.scheer@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.176 as permitted sender) X-PHP-List-Original-Sender: nicolai.scheer@gmail.com X-Host-Fingerprint: 209.85.160.176 mail-yk0-f176.google.com Received: from [209.85.160.176] ([209.85.160.176:65123] helo=mail-yk0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8D/60-33191-2F854835 for ; Tue, 27 May 2014 05:20:51 -0400 Received: by mail-yk0-f176.google.com with SMTP id q9so6867989ykb.35 for ; Tue, 27 May 2014 02:20:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=h2bKN8OInheBrmOyq21mnZM75VYrSYsYQ2yjIaT2eOU=; b=sHd6lmWzmlhXw6S5yDjjqsXRvzNbuF3Lns0xDaO0leq0Wq22kb+KGgNP1GdhQwvHmc tPkx4tDAf7jNWsmDOWIMmjak+AukEq9Tj/5ODnpK06o9Q3aNFo9uyXfgfeHQ1x85RiTd zknKZAly89MsYBDZkyZLQVOzLsm2c22NmzFEMOiZtUjeqYgmA465nzawEBjhntvqChZs GnXCCw91zQASemw5Q0z9Dra7KXdNXwhD3vMHXdKFDYRXQWUfRe1tpxOK7pII4M/oW9Bi gDzCbl2LURzo1JrbnOoxRpqt+tHez+LavN6Yc7Fvv9aY1XgZ3Gnz8CEEKbp9UffjVIiP fyZA== MIME-Version: 1.0 X-Received: by 10.236.228.40 with SMTP id e38mr15009333yhq.76.1401182447807; Tue, 27 May 2014 02:20:47 -0700 (PDT) Received: by 10.170.88.215 with HTTP; Tue, 27 May 2014 02:20:47 -0700 (PDT) In-Reply-To: References: <6048BA05-CC13-46DD-8439-9CB4EE29078B@ajf.me> <9EBA95A7-B9F7-41F0-AE2B-283260753E5A@googlemail.com> <537CBD67.4000008@lerdorf.com> Date: Tue, 27 May 2014 11:20:47 +0200 Message-ID: To: Derick Rethans Cc: Rasmus Lerdorf , Andrea Faulds , Kevin Ingwersen , PHP Internals Content-Type: multipart/alternative; boundary=001a11c2c4da1146f504fa5e36f1 Subject: Re: [PHP-DEV] encode php scripts with opcache compatibility From: nicolai.scheer@gmail.com (Nicolai Scheer) --001a11c2c4da1146f504fa5e36f1 Content-Type: text/plain; charset=UTF-8 Hi! On 23 May 2014 15:52, Nicolai Scheer 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 --001a11c2c4da1146f504fa5e36f1--