From d09ac84b18c0ff7516f17e4b3be52c6c588d0e60 Mon Sep 17 00:00:00 2001 From: Yaniv Sabo Date: Fri, 9 Feb 2018 07:32:57 -0800 Subject: [PATCH] Add setCompressionIndex to ZipArchive functions Summary: When calling ZipArchive::setCompressionIndex you get an error message in hh, even though it is actually implemented (hphp/runtime/ext/zip/ext_zip.php$362). The code executes fine and the function seems to work. The relevant commit is here: https://github.com/facebook/hhvm/commit/0e9d1968d258067f13dbfb2c3878cae46010599c Differential Revision: D6899409 fbshipit-source-id: d3e9e504c95ac1add666050ed2bc1f1b92341246 --- hphp/hack/hhi/stdlib/builtins_zip.hhi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hphp/hack/hhi/stdlib/builtins_zip.hhi b/hphp/hack/hhi/stdlib/builtins_zip.hhi index a2c4ce7a825..d49c8a50477 100644 --- a/hphp/hack/hhi/stdlib/builtins_zip.hhi +++ b/hphp/hack/hhi/stdlib/builtins_zip.hhi @@ -122,6 +122,11 @@ class ZipArchive { public function setArchiveComment(string $comment): bool; public function setCommentIndex(int $index, string $comment): bool; public function setCommentName(string $name, string $comment): bool; + public function setCompressionIndex( + int $index, + int $comp_method, + int $comp_flags = 0, + ): bool; public function statIndex(int $index, int $flags = 0): array; public function statName(string $name, int $flags = 0): array; public function unchangeAll(): bool; -- 2.11.4.GIT