Phar
在线手册:中文  英文

Using Phar Archives

Table of Contents


Phar
在线手册:中文  英文

用户评论:

hckurniawan at gmail dot com (2012-07-06 06:10:59)

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';

gabriel at bumpt dot net (2008-08-04 08:57:50)

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.

易百教程