dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Allow hook subscribers to also overwrite link to title"
[lhc/web/wiklou.git]
/
includes
/
utils
/
ZipDirectoryReader.php
diff --git
a/includes/utils/ZipDirectoryReader.php
b/includes/utils/ZipDirectoryReader.php
index
454a97b
..
bc84976
100644
(file)
--- a/
includes/utils/ZipDirectoryReader.php
+++ b/
includes/utils/ZipDirectoryReader.php
@@
-64,7
+64,7
@@
class ZipDirectoryReader {
* valid ZIP64 file, and working out what non-ZIP64 readers will make
* of such a file is not trivial.
*
* valid ZIP64 file, and working out what non-ZIP64 readers will make
* of such a file is not trivial.
*
- * @return Status object. The following fatal errors are defined:
+ * @return Status
A Status
object. The following fatal errors are defined:
*
* - zip-file-open-error: The file could not be opened.
*
*
* - zip-file-open-error: The file could not be opened.
*
@@
-129,6
+129,9
@@
class ZipDirectoryReader {
/**
* Private constructor
/**
* Private constructor
+ * @param string $fileName
+ * @param callable $callback
+ * @param array $options
*/
protected function __construct( $fileName, $callback, $options ) {
$this->fileName = $fileName;
*/
protected function __construct( $fileName, $callback, $options ) {
$this->fileName = $fileName;
@@
-181,6
+184,8
@@
class ZipDirectoryReader {
/**
* Throw an error, and log a debug message
/**
* Throw an error, and log a debug message
+ * @param mixed $code
+ * @param string $debugMessage
*/
function error( $code, $debugMessage ) {
wfDebug( __CLASS__ . ": Fatal error: $debugMessage\n" );
*/
function error( $code, $debugMessage ) {
wfDebug( __CLASS__ . ": Fatal error: $debugMessage\n" );
@@
-299,7
+304,7
@@
class ZipDirectoryReader {
* Find the location of the central directory, as would be seen by a
* non-ZIP64 reader.
*
* Find the location of the central directory, as would be seen by a
* non-ZIP64 reader.
*
- * @return List containing offset, size and end position.
+ * @return
array
List containing offset, size and end position.
*/
function findOldCentralDirectory() {
$size = $this->eocdr['CD size'];
*/
function findOldCentralDirectory() {
$size = $this->eocdr['CD size'];
@@
-357,6
+362,8
@@
class ZipDirectoryReader {
/**
* Read the central directory at the given location
/**
* Read the central directory at the given location
+ * @param int $offset
+ * @param int $size
*/
function readCentralDirectory( $offset, $size ) {
$block = $this->getBlock( $offset, $size );
*/
function readCentralDirectory( $offset, $size ) {
$block = $this->getBlock( $offset, $size );
@@
-448,6
+455,7
@@
class ZipDirectoryReader {
/**
* Interpret ZIP64 "extra field" data and return an associative array.
/**
* Interpret ZIP64 "extra field" data and return an associative array.
+ * @param string $extraField
* @return array|bool
*/
function unpackZip64Extra( $extraField ) {
* @return array|bool
*/
function unpackZip64Extra( $extraField ) {
@@
-483,6
+491,7
@@
class ZipDirectoryReader {
/**
* Get the length of the file.
/**
* Get the length of the file.
+ * @return int
*/
function getFileLength() {
if ( $this->fileLength === null ) {
*/
function getFileLength() {
if ( $this->fileLength === null ) {
@@
-572,6
+581,7
@@
class ZipDirectoryReader {
/**
* Get the size of a structure in bytes. See unpack() for the format of $struct.
/**
* Get the size of a structure in bytes. See unpack() for the format of $struct.
+ * @param array $struct
* @return int
*/
function getStructSize( $struct ) {
* @return int
*/
function getStructSize( $struct ) {
@@
-659,7
+669,7
@@
class ZipDirectoryReader {
* Returns a bit from a given position in an integer value, converted to
* boolean.
*
* Returns a bit from a given position in an integer value, converted to
* boolean.
*
- * @param
$value integer
+ * @param
int $value
* @param int $bitIndex The index of the bit, where 0 is the LSB.
* @return bool
*/
* @param int $bitIndex The index of the bit, where 0 is the LSB.
* @return bool
*/
@@
-669,6
+679,7
@@
class ZipDirectoryReader {
/**
* Debugging helper function which dumps a string in hexdump -C format.
/**
* Debugging helper function which dumps a string in hexdump -C format.
+ * @param string $s
*/
function hexDump( $s ) {
$n = strlen( $s );
*/
function hexDump( $s ) {
$n = strlen( $s );