update lock clucknut
All checks were successful
All checks were successful
This commit is contained in:
@@ -5,9 +5,7 @@
|
||||
use Safe\Exceptions\ZipException;
|
||||
|
||||
/**
|
||||
* Closes the specified directory entry.
|
||||
*
|
||||
* @param resource $zip_entry A directory entry previously opened zip_entry_open.
|
||||
* @param resource $zip_entry
|
||||
* @throws ZipException
|
||||
*
|
||||
*/
|
||||
@@ -22,10 +20,8 @@ function zip_entry_close($zip_entry): void
|
||||
|
||||
|
||||
/**
|
||||
* Returns the compressed size of the specified directory entry.
|
||||
*
|
||||
* @param resource $zip_entry A directory entry returned by zip_read.
|
||||
* @return int The compressed size.
|
||||
* @param resource $zip_entry
|
||||
* @return int
|
||||
* @throws ZipException
|
||||
*
|
||||
*/
|
||||
@@ -41,11 +37,8 @@ function zip_entry_compressedsize($zip_entry): int
|
||||
|
||||
|
||||
/**
|
||||
* Returns the compression method of the directory entry specified
|
||||
* by zip_entry.
|
||||
*
|
||||
* @param resource $zip_entry A directory entry returned by zip_read.
|
||||
* @return string The compression method.
|
||||
* @param resource $zip_entry
|
||||
* @return string
|
||||
* @throws ZipException
|
||||
*
|
||||
*/
|
||||
@@ -61,10 +54,8 @@ function zip_entry_compressionmethod($zip_entry): string
|
||||
|
||||
|
||||
/**
|
||||
* Returns the actual size of the specified directory entry.
|
||||
*
|
||||
* @param resource $zip_entry A directory entry returned by zip_read.
|
||||
* @return int The size of the directory entry.
|
||||
* @param resource $zip_entry
|
||||
* @return int
|
||||
* @throws ZipException
|
||||
*
|
||||
*/
|
||||
@@ -80,10 +71,8 @@ function zip_entry_filesize($zip_entry): int
|
||||
|
||||
|
||||
/**
|
||||
* Returns the name of the specified directory entry.
|
||||
*
|
||||
* @param resource $zip_entry A directory entry returned by zip_read.
|
||||
* @return string The name of the directory entry.
|
||||
* @param resource $zip_entry
|
||||
* @return string
|
||||
* @throws ZipException
|
||||
*
|
||||
*/
|
||||
@@ -99,16 +88,9 @@ function zip_entry_name($zip_entry): string
|
||||
|
||||
|
||||
/**
|
||||
* Opens a directory entry in a zip file for reading.
|
||||
*
|
||||
* @param resource $zip_dp A valid resource handle returned by zip_open.
|
||||
* @param resource $zip_entry A directory entry returned by zip_read.
|
||||
* @param string $mode Any of the modes specified in the documentation of
|
||||
* fopen.
|
||||
*
|
||||
* Currently, mode is ignored and is always
|
||||
* "rb". This is due to the fact that zip support
|
||||
* in PHP is read only access.
|
||||
* @param resource $zip_dp
|
||||
* @param resource $zip_entry
|
||||
* @param string $mode
|
||||
* @throws ZipException
|
||||
*
|
||||
*/
|
||||
@@ -123,13 +105,9 @@ function zip_entry_open($zip_dp, $zip_entry, string $mode = "rb"): void
|
||||
|
||||
|
||||
/**
|
||||
* Reads from an open directory entry.
|
||||
*
|
||||
* @param resource $zip_entry A directory entry returned by zip_read.
|
||||
* @param int $len The number of bytes to return.
|
||||
*
|
||||
* This should be the uncompressed length you wish to read.
|
||||
* @return string Returns the data read, empty string on end of a file.
|
||||
* @param resource $zip_entry
|
||||
* @param int $len
|
||||
* @return string
|
||||
* @throws ZipException
|
||||
*
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user