Re: RFC: execution opcode file without php source code file
| From: | Dik Takken | Date: | Thu, 01 Oct 2020 15:13:41 +0000 |
| Subject: | Re: RFC: execution opcode file without php source code file | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-111976@lists.php.net to get a copy of this message | ||
On 01-10-2020 14:30, Nikita Popov wrote:
> It would be good to know what the actual use-case for this is. If the goal
> here is to distribute pre-compiled PHP code without the source code, then
> this is not going to work without making the opcode format stable (which, I
> think, is pretty unlikely.) If the goal is improving cold startup
> performance, then I wonder what the benefit over the existing file cache is.
The only use case I see is to package commercial closed source
applications as Docker containers. That allows the packager to ship the
compiled code along with the exact PHP version and configuration that
can run it reliably.
Regards,
Dik Takken