diff options
author | Remi Collet <remi@remirepo.net> | 2022-05-02 15:03:57 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2022-05-02 15:03:57 +0200 |
commit | 61f2b9f378c46471f5711062e362ad5ab3c23e67 (patch) | |
tree | df737ebe6727346c2dac1efa696d595e102b2f22 | |
parent | 1a9d32ce147194fa69c8ff5868de4392d22c0c08 (diff) |
refresh reflection with 8.0
-rw-r--r-- | REFLECTION | 294 |
1 files changed, 152 insertions, 142 deletions
@@ -1,75 +1,83 @@ Extension [ <persistent> extension #66 zip version 1.20.0 ] { - Functions { - Function [ <internal:zip> function zip_open ] { + Function [ <internal, deprecated:zip> function zip_open ] { - Parameters [1] { - Parameter #0 [ <required> $filename ] + Parameter #0 [ <required> string $filename ] } } - Function [ <internal:zip> function zip_close ] { + Function [ <internal, deprecated:zip> function zip_close ] { - Parameters [1] { Parameter #0 [ <required> $zip ] } + - Return [ void ] } - Function [ <internal:zip> function zip_read ] { + Function [ <internal, deprecated:zip> function zip_read ] { - Parameters [1] { Parameter #0 [ <required> $zip ] } } - Function [ <internal:zip> function zip_entry_open ] { + Function [ <internal, deprecated:zip> function zip_entry_open ] { - Parameters [3] { Parameter #0 [ <required> $zip_dp ] Parameter #1 [ <required> $zip_entry ] - Parameter #2 [ <optional> $mode ] + Parameter #2 [ <optional> string $mode = "rb" ] } + - Return [ bool ] } - Function [ <internal:zip> function zip_entry_close ] { + Function [ <internal, deprecated:zip> function zip_entry_close ] { - Parameters [1] { - Parameter #0 [ <required> $zip_ent ] + Parameter #0 [ <required> $zip_entry ] } + - Return [ bool ] } - Function [ <internal:zip> function zip_entry_read ] { + Function [ <internal, deprecated:zip> function zip_entry_read ] { - Parameters [2] { Parameter #0 [ <required> $zip_entry ] - Parameter #1 [ <optional> $len ] + Parameter #1 [ <optional> int $len = 1024 ] } + - Return [ string|false ] } - Function [ <internal:zip> function zip_entry_filesize ] { + Function [ <internal, deprecated:zip> function zip_entry_name ] { - Parameters [1] { Parameter #0 [ <required> $zip_entry ] } + - Return [ string|false ] } - Function [ <internal:zip> function zip_entry_name ] { + Function [ <internal, deprecated:zip> function zip_entry_compressedsize ] { - Parameters [1] { Parameter #0 [ <required> $zip_entry ] } + - Return [ int|false ] } - Function [ <internal:zip> function zip_entry_compressedsize ] { + Function [ <internal, deprecated:zip> function zip_entry_filesize ] { - Parameters [1] { Parameter #0 [ <required> $zip_entry ] } + - Return [ int|false ] } - Function [ <internal:zip> function zip_entry_compressionmethod ] { + Function [ <internal, deprecated:zip> function zip_entry_compressionmethod ] { - Parameters [1] { Parameter #0 [ <required> $zip_entry ] } + - Return [ string|false ] } } - Classes [1] { Class [ <internal:zip> class ZipArchive implements Countable ] { - - Constants [101] { + - Constants [100] { Constant [ public int CREATE ] { 1 } Constant [ public int EXCL ] { 2 } Constant [ public int CHECKCONS ] { 4 } @@ -151,7 +159,6 @@ Extension [ <persistent> extension #66 zip version 1.20.0 ] { Constant [ public int OPSYS_OS_2 ] { 6 } Constant [ public int OPSYS_MACINTOSH ] { 7 } Constant [ public int OPSYS_Z_SYSTEM ] { 8 } - Constant [ public int OPSYS_Z_CPM ] { 9 } Constant [ public int OPSYS_CPM ] { 9 } Constant [ public int OPSYS_WINDOWS_NTFS ] { 10 } Constant [ public int OPSYS_MVS ] { 11 } @@ -180,42 +187,44 @@ Extension [ <persistent> extension #66 zip version 1.20.0 ] { Method [ <internal:zip> static public method isCompressionMethodSupported ] { - Parameters [2] { - Parameter #0 [ <required> $method ] - Parameter #1 [ <optional> $encode ] + Parameter #0 [ <required> int $method ] + Parameter #1 [ <optional> bool $enc = true ] } + - Return [ bool ] } Method [ <internal:zip> static public method isEncryptionMethodSupported ] { - Parameters [2] { - Parameter #0 [ <required> $method ] - Parameter #1 [ <optional> $encode ] + Parameter #0 [ <required> int $method ] + Parameter #1 [ <optional> bool $enc = true ] } + - Return [ bool ] } } - Properties [6] { - Property [ <default> public $lastId ] - Property [ <default> public $status ] - Property [ <default> public $statusSys ] - Property [ <default> public $numFiles ] - Property [ <default> public $filename ] - Property [ <default> public $comment ] + Property [ public $lastId = NULL ] + Property [ public $status = NULL ] + Property [ public $statusSys = NULL ] + Property [ public $numFiles = NULL ] + Property [ public $filename = NULL ] + Property [ public $comment = NULL ] } - Methods [48] { Method [ <internal:zip> public method open ] { - Parameters [2] { - Parameter #0 [ <required> $filename ] - Parameter #1 [ <optional> $flags ] + Parameter #0 [ <required> string $filename ] + Parameter #1 [ <optional> int $flags = 0 ] } } Method [ <internal:zip> public method setPassword ] { - Parameters [1] { - Parameter #0 [ <required> $password ] + Parameter #0 [ <required> string $password ] } } @@ -241,170 +250,189 @@ Extension [ <persistent> extension #66 zip version 1.20.0 ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:zip> public method addEmptyDir ] { - Parameters [2] { - Parameter #0 [ <required> $dirname ] - Parameter #1 [ <optional> $flags ] + Parameter #0 [ <required> string $dirname ] + Parameter #1 [ <optional> int $flags = 0 ] } } Method [ <internal:zip> public method addFromString ] { - Parameters [3] { - Parameter #0 [ <required> $name ] - Parameter #1 [ <required> $content ] - Parameter #2 [ <optional> $flags ] + Parameter #0 [ <required> string $name ] + Parameter #1 [ <required> string $content ] + Parameter #2 [ <optional> int $flags = ZipArchive::FL_OVERWRITE ] } } Method [ <internal:zip> public method addFile ] { - Parameters [5] { - Parameter #0 [ <required> $filepath ] - Parameter #1 [ <optional> $entryname ] - Parameter #2 [ <optional> $start ] - Parameter #3 [ <optional> $length ] - Parameter #4 [ <optional> $flags ] + Parameter #0 [ <required> string $filepath ] + Parameter #1 [ <optional> string $entryname = "" ] + Parameter #2 [ <optional> int $start = 0 ] + Parameter #3 [ <optional> int $length = 0 ] + Parameter #4 [ <optional> int $flags = ZipArchive::FL_OVERWRITE ] + } + } + + Method [ <internal:zip> public method replaceFile ] { + + - Parameters [5] { + Parameter #0 [ <required> string $filepath ] + Parameter #1 [ <required> string $index ] + Parameter #2 [ <optional> int $start = 0 ] + Parameter #3 [ <optional> int $length = 0 ] + Parameter #4 [ <optional> int $flags = 0 ] } } Method [ <internal:zip> public method addGlob ] { - Parameters [3] { - Parameter #0 [ <required> $pattern ] - Parameter #1 [ <optional> $flags ] - Parameter #2 [ <optional> $options ] + Parameter #0 [ <required> string $pattern ] + Parameter #1 [ <optional> int $flags = 0 ] + Parameter #2 [ <optional> array $options = [] ] } } Method [ <internal:zip> public method addPattern ] { - Parameters [3] { - Parameter #0 [ <required> $pattern ] - Parameter #1 [ <optional> $path ] - Parameter #2 [ <optional> $options ] + Parameter #0 [ <required> string $pattern ] + Parameter #1 [ <optional> string $path = "." ] + Parameter #2 [ <optional> array $options = [] ] } } Method [ <internal:zip> public method renameIndex ] { - Parameters [2] { - Parameter #0 [ <required> $index ] - Parameter #1 [ <required> $new_name ] + Parameter #0 [ <required> int $index ] + Parameter #1 [ <required> string $new_name ] } } Method [ <internal:zip> public method renameName ] { - Parameters [2] { - Parameter #0 [ <required> $name ] - Parameter #1 [ <required> $new_name ] - } - } - - Method [ <internal:zip> public method replaceFile ] { - - - Parameters [5] { - Parameter #0 [ <required> $filepath ] - Parameter #1 [ <required> $index ] - Parameter #2 [ <optional> $start ] - Parameter #3 [ <optional> $length ] - Parameter #4 [ <optional> $flags ] + Parameter #0 [ <required> string $name ] + Parameter #1 [ <required> string $new_name ] } } Method [ <internal:zip> public method setArchiveComment ] { - Parameters [1] { - Parameter #0 [ <required> $comment ] + Parameter #0 [ <required> string $comment ] } } Method [ <internal:zip> public method getArchiveComment ] { - Parameters [1] { - Parameter #0 [ <optional> $flags ] + Parameter #0 [ <optional> int $flags = 0 ] } } Method [ <internal:zip> public method setCommentIndex ] { - Parameters [2] { - Parameter #0 [ <required> $index ] - Parameter #1 [ <required> $comment ] + Parameter #0 [ <required> int $index ] + Parameter #1 [ <required> string $comment ] } } Method [ <internal:zip> public method setCommentName ] { - Parameters [2] { - Parameter #0 [ <required> $name ] - Parameter #1 [ <required> $comment ] + Parameter #0 [ <required> string $name ] + Parameter #1 [ <required> string $comment ] + } + } + + Method [ <internal:zip> public method setMtimeIndex ] { + + - Parameters [3] { + Parameter #0 [ <required> int $index ] + Parameter #1 [ <required> int $timestamp ] + Parameter #2 [ <optional> int $flags = 0 ] + } + } + + Method [ <internal:zip> public method setMtimeName ] { + + - Parameters [3] { + Parameter #0 [ <required> string $name ] + Parameter #1 [ <required> int $timestamp ] + Parameter #2 [ <optional> int $flags = 0 ] } } Method [ <internal:zip> public method getCommentIndex ] { - Parameters [2] { - Parameter #0 [ <required> $index ] - Parameter #1 [ <optional> $flags ] + Parameter #0 [ <required> int $index ] + Parameter #1 [ <optional> int $flags = 0 ] } } Method [ <internal:zip> public method getCommentName ] { - Parameters [2] { - Parameter #0 [ <required> $name ] - Parameter #1 [ <optional> $flags ] + Parameter #0 [ <required> string $name ] + Parameter #1 [ <optional> int $flags = 0 ] } } Method [ <internal:zip> public method deleteIndex ] { - Parameters [1] { - Parameter #0 [ <required> $index ] + Parameter #0 [ <required> int $index ] } } Method [ <internal:zip> public method deleteName ] { - Parameters [1] { - Parameter #0 [ <required> $name ] + Parameter #0 [ <required> string $name ] } } Method [ <internal:zip> public method statName ] { - Parameters [2] { - Parameter #0 [ <required> $filename ] - Parameter #1 [ <optional> $flags ] + Parameter #0 [ <required> string $name ] + Parameter #1 [ <optional> int $flags = 0 ] } } Method [ <internal:zip> public method statIndex ] { - Parameters [2] { - Parameter #0 [ <required> $index ] - Parameter #1 [ <optional> $flags ] + Parameter #0 [ <required> int $index ] + Parameter #1 [ <optional> int $flags = 0 ] } } Method [ <internal:zip> public method locateName ] { - Parameters [2] { - Parameter #0 [ <required> $filename ] - Parameter #1 [ <optional> $flags ] + Parameter #0 [ <required> string $name ] + Parameter #1 [ <optional> int $flags = 0 ] } } Method [ <internal:zip> public method getNameIndex ] { - Parameters [2] { - Parameter #0 [ <required> $index ] - Parameter #1 [ <optional> $flags ] + Parameter #0 [ <required> int $index ] + Parameter #1 [ <optional> int $flags = 0 ] } } @@ -423,172 +451,154 @@ Extension [ <persistent> extension #66 zip version 1.20.0 ] { Method [ <internal:zip> public method unchangeIndex ] { - Parameters [1] { - Parameter #0 [ <required> $index ] + Parameter #0 [ <required> int $index ] } } Method [ <internal:zip> public method unchangeName ] { - Parameters [1] { - Parameter #0 [ <required> $name ] + Parameter #0 [ <required> string $name ] } } Method [ <internal:zip> public method extractTo ] { - Parameters [2] { - Parameter #0 [ <required> $pathto ] - Parameter #1 [ <optional> $files ] + Parameter #0 [ <required> string $pathto ] + Parameter #1 [ <optional> array|string|null $files = null ] } } Method [ <internal:zip> public method getFromName ] { - Parameters [3] { - Parameter #0 [ <required> $entryname ] - Parameter #1 [ <optional> $len ] - Parameter #2 [ <optional> $flags ] + Parameter #0 [ <required> string $name ] + Parameter #1 [ <optional> int $len = 0 ] + Parameter #2 [ <optional> int $flags = 0 ] } } Method [ <internal:zip> public method getFromIndex ] { - Parameters [3] { - Parameter #0 [ <required> $index ] - Parameter #1 [ <optional> $len ] - Parameter #2 [ <optional> $flags ] + Parameter #0 [ <required> int $index ] + Parameter #1 [ <optional> int $len = 0 ] + Parameter #2 [ <optional> int $flags = 0 ] } } - Method [ <internal:zip> public method getStreamName ] { + Method [ <internal:zip> public method getStreamIndex ] { - Parameters [2] { - Parameter #0 [ <required> $entryname ] - Parameter #1 [ <optional> $flags ] + Parameter #0 [ <required> int $index ] + Parameter #1 [ <optional> int $flags = 0 ] } } - Method [ <internal:zip> public method getStreamIndex ] { + Method [ <internal:zip> public method getStreamName ] { - Parameters [2] { - Parameter #0 [ <required> $index ] - Parameter #1 [ <optional> $flags ] + Parameter #0 [ <required> string $name ] + Parameter #1 [ <optional> int $flags = 0 ] } } Method [ <internal:zip> public method getStream ] { - Parameters [1] { - Parameter #0 [ <required> $entryname ] + Parameter #0 [ <required> string $name ] } } Method [ <internal:zip> public method setExternalAttributesName ] { - Parameters [4] { - Parameter #0 [ <required> $name ] - Parameter #1 [ <required> $opsys ] - Parameter #2 [ <required> $attr ] - Parameter #3 [ <optional> $flags ] + Parameter #0 [ <required> string $name ] + Parameter #1 [ <required> int $opsys ] + Parameter #2 [ <required> int $attr ] + Parameter #3 [ <optional> int $flags = 0 ] } } Method [ <internal:zip> public method setExternalAttributesIndex ] { - Parameters [4] { - Parameter #0 [ <required> $index ] - Parameter #1 [ <required> $opsys ] - Parameter #2 [ <required> $attr ] - Parameter #3 [ <optional> $flags ] + Parameter #0 [ <required> int $index ] + Parameter #1 [ <required> int $opsys ] + Parameter #2 [ <required> int $attr ] + Parameter #3 [ <optional> int $flags = 0 ] } } Method [ <internal:zip> public method getExternalAttributesName ] { - Parameters [4] { - Parameter #0 [ <required> $name ] + Parameter #0 [ <required> string $name ] Parameter #1 [ <required> &$opsys ] Parameter #2 [ <required> &$attr ] - Parameter #3 [ <optional> $flags ] + Parameter #3 [ <optional> int $flags = 0 ] } } Method [ <internal:zip> public method getExternalAttributesIndex ] { - Parameters [4] { - Parameter #0 [ <required> $index ] + Parameter #0 [ <required> int $index ] Parameter #1 [ <required> &$opsys ] Parameter #2 [ <required> &$attr ] - Parameter #3 [ <optional> $flags ] - } - } - - Method [ <internal:zip> public method setMtimeName ] { - - - Parameters [3] { - Parameter #0 [ <required> $name ] - Parameter #1 [ <required> $timestamp ] - Parameter #2 [ <optional> $flags ] - } - } - - Method [ <internal:zip> public method setMtimeIndex ] { - - - Parameters [3] { - Parameter #0 [ <required> $index ] - Parameter #1 [ <required> $timestamp ] - Parameter #2 [ <optional> $flags ] + Parameter #3 [ <optional> int $flags = 0 ] } } Method [ <internal:zip> public method setCompressionName ] { - Parameters [3] { - Parameter #0 [ <required> $name ] - Parameter #1 [ <required> $method ] - Parameter #2 [ <optional> $compflags ] + Parameter #0 [ <required> string $name ] + Parameter #1 [ <required> int $method ] + Parameter #2 [ <optional> int $compflags = 0 ] } } Method [ <internal:zip> public method setCompressionIndex ] { - Parameters [3] { - Parameter #0 [ <required> $index ] - Parameter #1 [ <required> $method ] - Parameter #2 [ <optional> $compflags ] + Parameter #0 [ <required> int $index ] + Parameter #1 [ <required> int $method ] + Parameter #2 [ <optional> int $compflags = 0 ] } } Method [ <internal:zip> public method setEncryptionName ] { - Parameters [3] { - Parameter #0 [ <required> $name ] - Parameter #1 [ <required> $method ] - Parameter #2 [ <optional> $password ] + Parameter #0 [ <required> string $name ] + Parameter #1 [ <required> int $method ] + Parameter #2 [ <optional> ?string $password = null ] } } Method [ <internal:zip> public method setEncryptionIndex ] { - Parameters [3] { - Parameter #0 [ <required> $index ] - Parameter #1 [ <required> $method ] - Parameter #2 [ <optional> $password ] + Parameter #0 [ <required> int $index ] + Parameter #1 [ <required> int $method ] + Parameter #2 [ <optional> ?string $password = null ] } } Method [ <internal:zip> public method registerProgressCallback ] { - Parameters [2] { - Parameter #0 [ <required> $rate ] - Parameter #1 [ <required> $callback ] + Parameter #0 [ <required> float $rate ] + Parameter #1 [ <required> callable $callback ] } } Method [ <internal:zip> public method registerCancelCallback ] { - Parameters [1] { - Parameter #0 [ <required> $callback ] + Parameter #0 [ <required> callable $callback ] } } } |