mirror of
https://github.com/php/php-src.git
synced 2026-04-29 19:23:22 +02:00
add ZipArchive::ER_TRUNCATED_ZIP added in libzip 1.11 (#15959)
This commit is contained in:
@@ -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
|
||||
|
||||
Generated
+9
-1
@@ -1,5 +1,5 @@
|
||||
/* This is a generated file, edit the .stub.php file instead.
|
||||
* Stub hash: 2b8e40ec2fc17effac1c0acc97bf860ab7e27399 */
|
||||
* Stub hash: 53e04d9b2c25cc8a0c9fe51914b5a47280834fb8 */
|
||||
|
||||
ZEND_BEGIN_ARG_INFO_EX(arginfo_zip_open, 0, 0, 1)
|
||||
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
|
||||
@@ -1056,6 +1056,14 @@ static zend_class_entry *register_class_ZipArchive(zend_class_entry *class_entry
|
||||
zend_declare_typed_class_constant(class_entry, const_ER_NOT_ALLOWED_name, &const_ER_NOT_ALLOWED_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
|
||||
zend_string_release(const_ER_NOT_ALLOWED_name);
|
||||
#endif
|
||||
#if defined(ZIP_ER_TRUNCATED_ZIP)
|
||||
|
||||
zval const_ER_TRUNCATED_ZIP_value;
|
||||
ZVAL_LONG(&const_ER_TRUNCATED_ZIP_value, ZIP_ER_TRUNCATED_ZIP);
|
||||
zend_string *const_ER_TRUNCATED_ZIP_name = zend_string_init_interned("ER_TRUNCATED_ZIP", sizeof("ER_TRUNCATED_ZIP") - 1, 1);
|
||||
zend_declare_typed_class_constant(class_entry, const_ER_TRUNCATED_ZIP_name, &const_ER_TRUNCATED_ZIP_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
|
||||
zend_string_release(const_ER_TRUNCATED_ZIP_name);
|
||||
#endif
|
||||
#if defined(ZIP_AFL_RDONLY)
|
||||
|
||||
zval const_AFL_RDONLY_value;
|
||||
|
||||
Reference in New Issue
Block a user