Re: encode php scripts with opcache compatibility

From: Date: Thu, 22 May 2014 14:54:15 +0000
Subject: Re: encode php scripts with opcache compatibility
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-74431@lists.php.net to get a copy of this message
op 22-05-14 16:29, Johannes Schlüter schreef:
On Thu, 2014-05-22 at 15:47 +0200, Kevin Ingwersen wrote:
Definitively an aproach I am going to test out myself, to learn more about this.
Mind that a user could simply do something like this in an auto_append_file to get all scripts:
    <?php
    foreach (get_included_files() as $filename) {
        $sourcecode[$filename] = file_get_contents($filename);
    }
    ?>
So this ains little over using a phar file. Maybe I'm missing something but I don't see that happen if PHP is embedded in the C++ application through its own SAPI handler which will not pick up any ini directives from external php.ini files.
Bas van Beek

« previous php.internals (#74431) next »