Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74450 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77433 invoked from network); 23 May 2014 13:23:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 May 2014 13:23:22 -0000 Authentication-Results: pb1.pair.com smtp.mail=nicolai.scheer@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nicolai.scheer@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.51 as permitted sender) X-PHP-List-Original-Sender: nicolai.scheer@gmail.com X-Host-Fingerprint: 209.85.213.51 mail-yh0-f51.google.com Received: from [209.85.213.51] ([209.85.213.51:53370] helo=mail-yh0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 30/91-01753-9CB4F735 for ; Fri, 23 May 2014 09:23:21 -0400 Received: by mail-yh0-f51.google.com with SMTP id f73so4199875yha.24 for ; Fri, 23 May 2014 06:23:18 -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=zfnQu6DTDmBJffDgZMndoxEfSwF+kxnYdzqfEC4A67I=; b=ponEIEQZy396tfpsTi8KVpqOde1tif5wS8PighNLFQ2gk8HDdKuk5yEBpPU+Kt/JSP DuFsNO/N6mlrbcjMrAzSyBQTb5e6Ph8cM/Wkq8muDxVyyUVcDzuGP9F5hUrrV108WTef Dmmcak9kpIxn/cBqt6AbFdcMrE49C2NfLwaIqtLQMpBrSgdPtQ8hGHE1Cln7GO3f4HTl yFHns5yYks75TysAeiZYZCJ2UZp5Cl0WQ2XfkMMiP/0yR/eyB4sPyasOxfTH3gqM0mnk SdxkKvveCB04+G66539c6zRzoGtF7TZW6TxRSzWmbiebPJ6T73Ftyu5exi86f+VrTh3L X94A== MIME-Version: 1.0 X-Received: by 10.236.17.194 with SMTP id j42mr5506727yhj.138.1400851398130; Fri, 23 May 2014 06:23:18 -0700 (PDT) Received: by 10.170.88.215 with HTTP; Fri, 23 May 2014 06:23:18 -0700 (PDT) In-Reply-To: References: Date: Fri, 23 May 2014 15:23:18 +0200 Message-ID: To: Lazy Cc: PHP Internals Content-Type: multipart/alternative; boundary=001a11c1e2a8f803bb04fa1121ef Subject: Re: [PHP-DEV] encode php scripts with opcache compatibility From: nicolai.scheer@gmail.com (Nicolai Scheer) --001a11c1e2a8f803bb04fa1121ef Content-Type: text/plain; charset=UTF-8 Hi! On 22 May 2014 21:18, Lazy wrote: > 2014-05-21 12:20 GMT+02:00 Nicolai Scheer : > > Hi all, > > > > I'm currently facing the situation, that I need to protect my php sources > > and retain opcache compatibility. > > > Basically it would be ok to just dump the _zend_op_array struct (defined > in > > zend_compile.h) to a file and make the zend engine able to load it again. > > Once it is loaded, it could be server from opcache. > > > Is there any solution for my situation? > > Are there any plans to add the "serialize opcode to string, dump string > to > > file and load it again"-functionality to php? > > How easy would it be to add this functionality? > > > > Maybe there are already functions I don't know about to ease this > process ? > > [MLC Opcache links] > > -- > Michal Grzedzicki > That's very interesting! I'll look into that stuff! Thanks! Nico --001a11c1e2a8f803bb04fa1121ef--