#39506 and PECL #9278, should fix the problem for the other SAPI (works for CLI, CGI and embed)

see: http://news.php.net/php.internals/26606 for the details
This commit is contained in:
Pierre Joye 2006-11-15 16:24:24 +00:00
parent 842b1b5a47
commit 1d61562efe

View File

@ -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) {