Skip to content

Commit

Permalink
add ZipArchive::ER_TRUNCATED_ZIP added in libzip 1.11 (php#15959)
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet authored Sep 19, 2024
1 parent 1b9568d commit 4cdba05
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
7 changes: 7 additions & 0 deletions ext/zip/php_zip.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,13 @@ class ZipArchive implements Countable
*/
public const int ER_NOT_ALLOWED = UNKNOWN;
#endif
#ifdef ZIP_ER_TRUNCATED_ZIP
/**
* Possibly truncated or corrupted zip archive
* @cvalue ZIP_ER_TRUNCATED_ZIP
*/
public const int ER_TRUNCATED_ZIP = UNKNOWN;
#endif
#ifdef ZIP_AFL_RDONLY
/**
* read only -- cannot be cleared
Expand Down
10 changes: 9 additions & 1 deletion ext/zip/php_zip_arginfo.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4cdba05

Please sign in to comment.