commit 3a710fa7cb85d14e7296fea02a043536b4aa2eee
Author: Louis-Arnaud <la.catoire@gmail.com>
Date: Fri Aug 21 15:59:42 2026 +0200
ext/zip: declare true as the return type of zip_entry_close() (#23395)
The function has two exits: RETURN_THROWS for a bad parameter or a
stale resource, and an unconditional RETURN_TRUE after closing the
entry. Nothing returns false.
diff --git a/ext/zip/php_zip.stub.php b/ext/zip/php_zip.stub.php
index 2cece2791d1..60fc47abfcf 100644
--- a/ext/zip/php_zip.stub.php
+++ b/ext/zip/php_zip.stub.php
@@ -32,7 +32,7 @@ function zip_entry_open($zip_dp, $zip_entry, string $mode = "rb"): bool {}
* @param resource $zip_entry
*/
#[\Deprecated(since: '8.0')]
-function zip_entry_close($zip_entry): bool {}
+function zip_entry_close($zip_entry): true {}
/**
* @param resource $zip_entry
diff --git a/ext/zip/php_zip_arginfo.h b/ext/zip/php_zip_arginfo.h
index 4f8366dc151..2496670158d 100644
Binary files a/ext/zip/php_zip_arginfo.h and b/ext/zip/php_zip_arginfo.h differ