Skip to content

Commit a3bfd4a

Browse files
committed
Fixed bug #79678 Build fails due to undeclared ZIP_RDONLY
1 parent 706d4f3 commit a3bfd4a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext/zip/php_zip.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1456,7 +1456,11 @@ PHP_METHOD(ZipArchive, open)
14561456
"Do not accept empty files as valid zip archives any longer" */
14571457

14581458
/* open for write without option to empty the archive */
1459+
#ifdef ZIP_RDONLY
14591460
if ((flags & (ZIP_TRUNCATE | ZIP_RDONLY)) == 0) {
1461+
#else
1462+
if ((flags & ZIP_TRUNCATE) == 0) {
1463+
#endif
14601464
zend_stat_t st;
14611465

14621466
/* exists and is empty */

0 commit comments

Comments
 (0)