diff options
author | Pierre Joye <pajoye@php.net> | 2006-11-15 16:24:24 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2006-11-15 16:24:24 +0000 |
commit | 1d61562efe60bfdefc29ed36c4f9345a7ce10f8c (patch) | |
tree | 41b3d1a28d52eb87b7485f3c99bbebc95c251da5 /ext/zip/lib/zip_open.c | |
parent | 842b1b5a4718b0806b2127f6423f994a06beee03 (diff) | |
download | php-git-1d61562efe60bfdefc29ed36c4f9345a7ce10f8c.tar.gz |
#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
Diffstat (limited to 'ext/zip/lib/zip_open.c')
-rw-r--r-- | ext/zip/lib/zip_open.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/zip/lib/zip_open.c b/ext/zip/lib/zip_open.c index 0a14abda58..c8d45146db 100644 --- a/ext/zip/lib/zip_open.c +++ b/ext/zip/lib/zip_open.c @@ -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) { |