|
Phar->getStub
Return the PHP loader or bootstrap stub of a Phar archive
()
One of the features that differentiates a Phar archive from other familiar archive
formats like tar or zip is that a Phar archive is explicitly designed to be
included to allow distributing an application or library that can be
run without extraction directly from the archive. In order to accomplish
this, Phar archives contain a bootstrap loader, or
Warning:
All stubs must end with
Return ValuesReturns a string containing the contents of the bootstrap loader (stub) of the current Phar archive. Errors/Exceptions
Throws ExamplesExample 1804. A Phar->getStub() example$p = new Phar('/path/to/my.phar', 0, 'my.phar'); The above example will output: <?php __HALT_COMPILER();
See Also
|
Change LanguagePhar::apiVersion Phar::canCompress Phar::canWrite Phar->compressAllFilesBZIP2 Phar->compressAllFilesGZ Phar::__construct Phar->count Phar->getMetaData Phar->getModified Phar->getSignature Phar->getStub Phar->getVersion Phar->isBuffering Phar::loadPhar Phar::mapPhar Phar::offsetExists Phar::offsetGet Phar::offsetSet Phar::offsetUnset Phar->setMetaData Phar->setStub Phar->startBuffering Phar->stopBuffering Phar->uncompressAllFiles PharFileInfo->chmod PharFileInfo::__construct PharFileInfo->getCompressedSize PharFileInfo->getCRC32 PharFileInfo->getMetaData PharFileInfo->getPharFlags PharFileInfo->isCompressed PharFileInfo->isCompressedBZIP2 PharFileInfo->isCompressedGZ PharFileInfo->isCRCChecked PharFileInfo->setCompressedBZIP2 PharFileInfo->setCompressedGZ PharFileInfo->setMetaData PharFileInfo->setUncompressed |