summaryrefslogtreecommitdiff
path: root/ext/zip/php_zip.stub.php
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-04-02 14:40:05 +0200
committerRemi Collet <remi@php.net>2020-04-02 14:52:05 +0200
commit2dc8d39bae47fc2cb44125514a8a4e81e9a8dd24 (patch)
tree9f877f81ed444db748ec6e41aaac441ecb0e99f6 /ext/zip/php_zip.stub.php
parent6983ae751cd301886c966b84367fc7aaa1273b2d (diff)
downloadphp-git-2dc8d39bae47fc2cb44125514a8a4e81e9a8dd24.tar.gz
- add ZipArchive::EM_UNKNOWN constant - add ZipArchive::EM_TRAD_PKWARE constant - cleanup hack for libzip 1.3.1 (have only exist for a few days) - add ZipArchive::isCompressionMethodSupported() method (libzip 1.7.0) - add ZipArchive::isEncryptionMethodSupported() method (libzip 1.7.0) - bump version to 1.19.0-dev
Diffstat (limited to 'ext/zip/php_zip.stub.php')
-rw-r--r--ext/zip/php_zip.stub.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/zip/php_zip.stub.php b/ext/zip/php_zip.stub.php
index 1e3ceb6d07..101afcbe8e 100644
--- a/ext/zip/php_zip.stub.php
+++ b/ext/zip/php_zip.stub.php
@@ -186,4 +186,12 @@ class ZipArchive
/** @return bool */
public function registerCancelCallback(callable $callback) {}
#endif
+
+#ifdef HAVE_METHOD_SUPPORTED
+ /** @return bool */
+ public static function isCompressionMethodSupported(int $method, bool $enc): bool {}
+
+ /** @return bool */
+ public static function isEncryptionMethodSupported(int $method, bool $enc): bool {}
+#endif
}