Skip to content

Commit 4cdba05

Browse files
authored
add ZipArchive::ER_TRUNCATED_ZIP added in libzip 1.11 (php#15959)
1 parent 1b9568d commit 4cdba05

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

ext/zip/php_zip.stub.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,13 @@ class ZipArchive implements Countable
444444
*/
445445
public const int ER_NOT_ALLOWED = UNKNOWN;
446446
#endif
447+
#ifdef ZIP_ER_TRUNCATED_ZIP
448+
/**
449+
* Possibly truncated or corrupted zip archive
450+
* @cvalue ZIP_ER_TRUNCATED_ZIP
451+
*/
452+
public const int ER_TRUNCATED_ZIP = UNKNOWN;
453+
#endif
447454
#ifdef ZIP_AFL_RDONLY
448455
/**
449456
* read only -- cannot be cleared

ext/zip/php_zip_arginfo.h

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)