mirror of
https://github.com/php/php-src.git
synced 2025-01-25 05:04:20 +08:00
see: http://news.php.net/php.internals/26606 for the details
This commit is contained in:
parent
842b1b5a47
commit
1d61562efe
@ -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…
Reference in New Issue
Block a user