说明
final public static Phar::createDefaultStub
([ string $indexfile
[, string $webindexfile
]] ) : string
This method is intended for creation of phar-file format-specific stubs, and is
not intended for use with tar- or zip-based phar archives.
Phar archives contain a bootstrap loader, or stub
written in PHP that is executed when the archive is executed in PHP either via
include:
or by simple execution:
php myphar.phar
This method provides a simple and easy method to create a stub that will
run a startup file from the phar archive. In addition, different files can
be specified for running the phar archive from the command line versus through
a web server. The loader stub also calls