mirror of
https://github.com/php/php-src.git
synced 2025-08-17 22:48:57 +02:00
see: http://news.php.net/php.internals/26606 for the details
This commit is contained in:
parent
842b1b5a47
commit
1d61562efe
1 changed files with 4 additions and 0 deletions
|
@ -75,6 +75,10 @@ zip_open(const char *fn, int flags, int *zep)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
#ifdef PHP_WIN32
|
||||
_fmode = _O_BINARY;
|
||||
#endif
|
||||
|
||||
if (flags & ZIP_OVERWRITE || stat(fn, &st) != 0) {
|
||||
if ((flags & ZIP_CREATE) || (flags & ZIP_OVERWRITE)) {
|
||||
if ((za=_zip_new(&error)) == NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue