Search Results
Errors/Exceptions ¶ This method returns UnexpectedValueException when the iterator returns incorrect values, such as an integer key instead of a string, a BadMethodCallException when an SplFileInfo-based iterator is passed without a baseDirectory parameter, or a PharException if there were errors saving the phar archive.
Errors/Exceptions This method returns UnexpectedValueException when the iterator returns incorrect values, such as an integer key instead of a string, a BadMethodCallException when an SplFileInfo-based iterator is passed without a base_directory parameter, or a PharException if there were errors saving the phar archive.
PharData::buildFromIterator () does not set values such as compression, metadata, and this can be done after creating the tar/zip archive. As an interesting note, PharData::buildFromIterator () can also be used to copy the contents of an existing phar, tar or zip archive, as the PharData object descends from DirectoryIterator:
phardata:: buildFromIterator () retourne un tableau associatif faisant correspondre un chemin de fichier interne avec un chemin complet vers le fichier sur le système de fichiers.
May 4, 2026 · PharData::buildFromIterator () does not set values such as compression, metadata, and this can be done after creating the tar/zip archive. As an interesting note, PharData::buildFromIterator () can also be used to copy the contents of an existing phar, tar or zip archive, as the PharData object descends from DirectoryIterator:
PharData::buildFromIterator () does not set values such as compression, metadata, and this can be done after creating the tar/zip archive. As an interesting note, PharData::buildFromIterator () can also be used to copy the contents of an existing phar, tar or zip archive, as the PharData object descends from DirectoryIterator:
Simple usage example of `PharData::buildFromIterator ()`. The PharData::buildFromIterator function in PHP is used to construct a tar or zip archive from an iterator. It allows you to create an archive file by iterating over the files and directories in a directory or collection.
