|
Phar::setDefaultStubUsed to set the PHP loader or bootstrap stub of a Phar archive to the default loader Description
public bool Phar::setDefaultStub(stringnull
$index = null , stringnull $webIndex = null )
This method is a convenience method that combines the functionality of Phar::createDefaultStub and Phar::setStub. Parameters
Return Values
Returns Errors/ExceptionsUnexpectedValueException is thrown if phar.readonly is enabled in php.ini. PharException is thrown if any problems are encountered flushing changes to disk. Changelog
Examples
Example #1 A Phar::setDefaultStub example
See Also
|