X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Futils%2FZipDirectoryReader.php;h=86960aa1873b850b38ab0184cdfbb57d044b6d51;hb=8a9a094da341d6d50b0eeb4ff52d3c6500687aaa;hp=0f56e337519438234f1e383eea35e4a80390deab;hpb=bc3d8e267e5c5fe8ce2ad5acfa8fe03e1752c4aa;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/utils/ZipDirectoryReader.php b/includes/utils/ZipDirectoryReader.php index 0f56e33751..86960aa187 100644 --- a/includes/utils/ZipDirectoryReader.php +++ b/includes/utils/ZipDirectoryReader.php @@ -129,6 +129,9 @@ class ZipDirectoryReader { /** * Private constructor + * @param string $fileName + * @param callable $callback + * @param array $options */ protected function __construct( $fileName, $callback, $options ) { $this->fileName = $fileName; @@ -183,6 +186,7 @@ class ZipDirectoryReader { * Throw an error, and log a debug message * @param mixed $code * @param string $debugMessage + * @throws ZipDirectoryReaderError */ function error( $code, $debugMessage ) { wfDebug( __CLASS__ . ": Fatal error: $debugMessage\n" ); @@ -359,6 +363,8 @@ class ZipDirectoryReader { /** * Read the central directory at the given location + * @param int $offset + * @param int $size */ function readCentralDirectory( $offset, $size ) { $block = $this->getBlock( $offset, $size ); @@ -450,6 +456,7 @@ class ZipDirectoryReader { /** * Interpret ZIP64 "extra field" data and return an associative array. + * @param string $extraField * @return array|bool */ function unpackZip64Extra( $extraField ) { @@ -575,6 +582,7 @@ class ZipDirectoryReader { /** * Get the size of a structure in bytes. See unpack() for the format of $struct. + * @param array $struct * @return int */ function getStructSize( $struct ) {