Re: encode php scripts with opcache compatibility

From: Date: Fri, 23 May 2014 13:39:30 +0000
Subject: Re: encode php scripts with opcache compatibility
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-74454@lists.php.net to get a copy of this message
2014-05-23 16:25 GMT+03:00 Nicolai Scheer <nicolai.scheer@gmail.com>:

> Hi!
>
> On 22 May 2014 16:01, Arvids Godjuks <arvids.godjuks@gmail.com> wrote:
>
>> Maybe the Zephyr http://zephir-lang.com/ could give
>> you an alternative to
>> messing with OPCache and encoders and give you some performance boost at
>> the same time. But only if your client can configure PHP to load an
>> extension of yours that Zephyr makes.
>>
>
> That again involves rewriting a lot of scripts which is unfortunately not
> feasible.
>
> Greetings
>
> Nico
>
>
I'd suggest at least checking it out.
It is a smaller subset of PHP and as far as I know, they have some kind of
translator from PHP into Zephir, so you can just fix the parts that are
dynamic in nature and should be done differently in Zephir. And you don't
need to put all the code into it - just important classes that you really
wana hide.
You can't write direct code in Zephir, just the classes. It's a tool for
creating library code that is done as a PHP extension.

Arvids.


Thread (32 messages)

« previous php.internals (#74454) next »