123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240 |
- <?php
- function zip_open(string $filename) {}
- function zip_close($zip): void {}
- function zip_read($zip) {}
- function zip_entry_open($zip_dp, $zip_entry, string $mode = "rb"): bool {}
- function zip_entry_close($zip_entry): bool {}
- function zip_entry_read($zip_entry, int $len = 1024): string|false {}
- function zip_entry_name($zip_entry): string|false {}
- function zip_entry_compressedsize($zip_entry): int|false {}
- function zip_entry_filesize($zip_entry): int|false {}
- function zip_entry_compressionmethod($zip_entry): string|false {}
- class ZipArchive implements Countable
- {
-
- public int $lastId;
-
- public int $status;
-
- public int $statusSys;
-
- public int $numFiles;
-
- public string $filename;
-
- public string $comment;
-
- public function open(string $filename, int $flags = 0): bool|int {}
-
- public function setPassword(string $password): bool {}
-
- public function close(): bool {}
-
- public function count(): int {}
-
- public function getStatusString(): string {}
-
- public function addEmptyDir(string $dirname, int $flags = 0): bool {}
-
- public function addFromString(string $name, string $content, int $flags = ZipArchive::FL_OVERWRITE): bool {}
-
- public function addFile(string $filepath, string $entryname = "", int $start = 0, int $length = 0, int $flags = ZipArchive::FL_OVERWRITE): bool {}
-
- public function replaceFile(string $filepath, int $index, int $start = 0, int $length = 0, int $flags = 0): bool {}
-
- public function addGlob(string $pattern, int $flags = 0, array $options = []): array|false {}
-
- public function addPattern(string $pattern, string $path = ".", array $options = []): array|false {}
-
- public function renameIndex(int $index, string $new_name): bool {}
-
- public function renameName(string $name, string $new_name): bool {}
-
- public function setArchiveComment(string $comment): bool {}
-
- public function getArchiveComment(int $flags = 0): string|false {}
-
- public function setCommentIndex(int $index, string $comment): bool {}
-
- public function setCommentName(string $name, string $comment): bool {}
-
- public function setMtimeIndex(int $index, int $timestamp, int $flags = 0): bool {}
-
- public function setMtimeName(string $name, int $timestamp, int $flags = 0): bool {}
-
- public function getCommentIndex(int $index, int $flags = 0): string|false {}
-
- public function getCommentName(string $name, int $flags = 0): string|false {}
-
- public function deleteIndex(int $index): bool {}
-
- public function deleteName(string $name): bool {}
-
- public function statName(string $name, int $flags = 0): array|false {}
-
- public function statIndex(int $index, int $flags = 0): array|false {}
-
- public function locateName(string $name, int $flags = 0): int|false {}
-
- public function getNameIndex(int $index, int $flags = 0): string|false {}
-
- public function unchangeArchive(): bool {}
-
- public function unchangeAll(): bool {}
-
- public function unchangeIndex(int $index): bool {}
-
- public function unchangeName(string $name): bool {}
-
- public function extractTo(string $pathto, array|string|null $files = null): bool {}
-
- public function getFromName(string $name, int $len = 0, int $flags = 0): string|false {}
-
- public function getFromIndex(int $index, int $len = 0, int $flags = 0): string|false {}
-
- public function getStream(string $name) {}
-
- public function setExternalAttributesName(string $name, int $opsys, int $attr, int $flags = 0): bool {}
-
- public function setExternalAttributesIndex(int $index, int $opsys, int $attr, int $flags = 0): bool {}
-
- public function getExternalAttributesName(string $name, &$opsys, &$attr, int $flags = 0): bool {}
-
- public function getExternalAttributesIndex(int $index, &$opsys, &$attr, int $flags = 0): bool {}
-
- public function setCompressionName(string $name, int $method, int $compflags = 0): bool {}
-
- public function setCompressionIndex(int $index, int $method, int $compflags = 0): bool {}
-
- public function setEncryptionName(string $name, int $method, ?string $password = null): bool {}
-
- public function setEncryptionIndex(int $index, int $method, ?string $password = null): bool {}
-
- public function registerProgressCallback(float $rate, callable $callback): bool {}
-
- public function registerCancelCallback(callable $callback): bool {}
- public static function isCompressionMethodSupported(int $method, bool $enc = true): bool {}
- public static function isEncryptionMethodSupported(int $method, bool $enc = true): bool {}
- }
|