diff options
author | Remi Collet <remi@php.net> | 2020-06-07 07:53:14 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2020-06-07 07:53:26 +0200 |
commit | a3bfd4a1082f00eecde9c1feddbdb8adf4a928da (patch) | |
tree | 5fa5c128b43192c48194432f11362b925e128361 /ext/zip/php_zip.c | |
parent | 706d4f355907362e4e767736ec6d077fa0ca63b4 (diff) | |
download | php-git-a3bfd4a1082f00eecde9c1feddbdb8adf4a928da.tar.gz |
Fixed bug #79678 Build fails due to undeclared ZIP_RDONLY
Diffstat (limited to 'ext/zip/php_zip.c')
-rw-r--r-- | ext/zip/php_zip.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c index f131966c1f..b275985fa8 100644 --- a/ext/zip/php_zip.c +++ b/ext/zip/php_zip.c @@ -1456,7 +1456,11 @@ PHP_METHOD(ZipArchive, open) "Do not accept empty files as valid zip archives any longer" */ /* open for write without option to empty the archive */ +#ifdef ZIP_RDONLY if ((flags & (ZIP_TRUNCATE | ZIP_RDONLY)) == 0) { +#else + if ((flags & ZIP_TRUNCATE) == 0) { +#endif zend_stat_t st; /* exists and is empty */ |