Search Results
It is important to note that file permissions are natively supported inside a phar; it is possible to set them with the PharFileInfo::chmod () method. As with all functionality that modifies the contents of a phar, the phar.readonly INI variable must be off in order to succeed if the file is within a Phar archive.
PharFileInfo::setMetadata () should only be used to store customized data in a file that cannot be represented with existing information stored with a file. Meta-data can significantly slow down the performance of loading a phar archive if the data is large, or if there are many files containing meta-data.
PharFileInfo:: setMetadata () ne doit être utilisée que pour stocker des données personnalisées dans un fichier qui ne peuvent pas l'être avec des informations normalement stockées avec le fichier. Les métadonnées peuvent dégrader les performances de chargement d'une archive phar si les données sont trop lourdes ou s'il y a beaucoup de fichiers avec des métadonnées. Il est ...
It is important to note that file permissions are natively supported inside a phar; it is possible to set them with the PharFileInfo::chmod () method. As with all functionality that modifies the contents of a phar, the phar.readonly INI variable must be off in order to succeed if the file is within a Phar archive.
PharFileInfo::setCompressedGZ — Compresses the current Phar entry within the phar using gz compression PharFileInfo::setMetadata — Sets file-specific meta-data saved with a file PharFileInfo::setUncompressed — Uncompresses the current Phar entry within the phar, if it is compressed PHP Manual
Note: This method requires the php.ini setting phar.readonly to be set to 0 in order to work for Phar objects. Otherwise, a PharException will be thrown. Phar::setMetadata () should be used to store customized data that describes something about the phar archive as a complete entity. PharFileInfo::setMetadata () should be used for file-specific meta-data. Meta-data can slow down the ...
People also ask
What is pharfileinfo setmetadata?
How do I use meta-data in a Phar archive?
Why does meta-data slow down the loading of a Phar archive?
What is the use of meta-data in phardata archives?
This method requires the php.ini setting phar.readonly to be set to 0 in order to work for Phar objects. Otherwise, a PharException will be thrown. Phar::setMetadata () should be used to store customized data that describes something about the phar archive as a complete entity. PharFileInfo::setMetadata () should be used for file-specific meta ...
