update : 2015.11.03
php.shukuma.com검색:
|
Phar::loadPhar(PHP >= 5.3.0, PECL phar >= 1.0.0) Phar::loadPhar — Loads any phar archive with an alias 설명
final public static bool Phar::loadPhar
( string
$filename
[, string $alias
] )This can be used to read the contents of an external Phar archive. This is most useful for assigning an alias to a phar so that subsequent references to the phar can use the shorter alias, or for loading Phar archives that only contain data and are not intended for execution/inclusion in PHP scripts. 인수
반환값
성공 시 오류/예외PharException is thrown if an alias is passed in and the phar archive already has an explicit alias 예제
Example #1 A Phar::loadPhar() example Phar::loadPhar can be used anywhere to load an external Phar archive, whereas Phar::mapPhar should be used in a loader stub for a Phar.
<?php |