Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions ext/zip/php_zip.c
Original file line number Diff line number Diff line change
Expand Up @@ -1463,11 +1463,7 @@ PHP_METHOD(ZipArchive, open)
}

/* 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 = {0};

/* exists and is empty */
Expand Down
2 changes: 0 additions & 2 deletions ext/zip/php_zip.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,10 @@ class ZipArchive implements Countable
* @cvalue ZIP_OVERWRITE
*/
public const int OVERWRITE = UNKNOWN;
#ifdef ZIP_RDONLY
/**
* @cvalue ZIP_RDONLY
*/
public const int RDONLY = UNKNOWN;
#endif

/**
* @cvalue ZIP_FL_NOCASE
Expand Down
4 changes: 1 addition & 3 deletions ext/zip/php_zip_arginfo.h

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

Loading