One should be aware that the bcompiler extension does not appear to work in a phar archive.
When parsing PHP files within a Phar archive, the engine seems to not decode the b-compiled files. Rather, it outputs the bytecode data, even if the bcompiler extension is enabled and loaded, and otherwise operating properly on stand-alone b-compiled PHP files.
Using Phar Archives
Table of Contents
gabriel at bumpt dot net ¶
4 years ago
hckurniawan at gmail dot com ¶
11 months ago
It seems that the stub of PHAR file is not being executed if you include a specific file from the PHAR file. The stub is only executed if you include the PHAR file.
Stub is *NOT* called:
include __DIR__ . '/somefile.phar/TestClass.php';
Stub is called, but individual files are *NOT* loaded:
include __DIR__ . '/somefile.phar';
