X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Futils%2FZipDirectoryReader.php;h=46f3bbcce727f26cefd6682c7c0daba6b0d8a07d;hb=56d45558b102349f3480a46819669407aa3be2d6;hp=f0ace2ccb3bd87d2664ec124842517053da30d12;hpb=10d1b7d12b5d097413cd507740c5c71781c2580b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/utils/ZipDirectoryReader.php b/includes/utils/ZipDirectoryReader.php index f0ace2ccb3..46f3bbcce7 100644 --- a/includes/utils/ZipDirectoryReader.php +++ b/includes/utils/ZipDirectoryReader.php @@ -511,7 +511,7 @@ class ZipDirectoryReader { * in the file to satisfy the request, an exception will be thrown. * * @param int $start The byte offset of the start of the block. - * @param int $length The number of bytes to return. If omitted, the remainder + * @param int|null $length The number of bytes to return. If omitted, the remainder * of the file will be returned. * * @return string @@ -656,7 +656,7 @@ class ZipDirectoryReader { } // Throw an exception if there was loss of precision - if ( $value > pow( 2, 52 ) ) { + if ( $value > 2 ** 52 ) { $this->error( 'zip-unsupported', 'number too large to be stored in a double. ' . 'This could happen if we tried to unpack a 64-bit structure ' . 'at an invalid location.' );