|
Phar::getMetadataReturns phar archive meta-data Description
public mixed Phar::getMetadata(array
$unserializeOptions = [])Retrieve archive meta-data. Meta-data can be any PHP variable that can be serialized. Caution
Accessing the meta-data will trigger deserialization, which can trigger
the execution of arbitrary PHP code. Do not use this on untrusted phar
archives, or configure the ParametersNo parameters. Return Values
Any PHP value that can be serialized and is stored as meta-data for the Phar archive,
or Changelog
Examples
Example #1 A Phar::getMetadata example
The above example will output:
array(1) {
["bootstrap"]=>
string(8) "file.php"
}
See Also
|