Re: encode php scripts with opcache compatibility
| From: | Andrey Andreev | Date: | Wed, 21 May 2014 21:39:51 +0000 |
| Subject: | Re: encode php scripts with opcache compatibility | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-74420@lists.php.net to get a copy of this message | ||
On Wed, May 21, 2014 at 11:19 PM, Andrea Faulds <ajf@ajf.me> wrote:
>
> On 21 May 2014, at 21:12, Nicolai Scheer <nicolai.scheer@gmail.com> wrote:
>
>> I always thought the opcodes where kind of cryptic, at least a bit... I'm
>> not longing for "true" protection. It's enough if the scripts can not be
>> read and modified in an easy way.
>
> I don’t believe there’s any way to do that.
There's Zend Guard, ionCube and I also recall a third similar product
(that probably no longer exists), but AFAIK none of them works with
PHP 5.5 and OpCache is most likely the blocker for them.
If OpCache and/or some syntax sugar isn't really a requirement though,
I remember some years ago I had to use a Zend Guard version that was
built for PHP 5.2 in a 5.3 environment ... using syntax compatible
with 5.2 did the trick.
My $0.02,
Andrey.