RE: [PHP-CVS] cvs: php-src(PHP_5_2) /ext/zip/lib zip_open.c
| From: | Dmitry Stogov | Date: | Wed, 15 Nov 2006 17:26:19 +0000 |
| Subject: | RE: [PHP-CVS] cvs: php-src(PHP_5_2) /ext/zip/lib zip_open.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-41583@lists.php.net to get a copy of this message | ||
I am not sure in this patch, because it changes the whole process behavior.
May be you need add character "b" into 'mode' then you open zip archive?
Dmitry.
> -----Original Message-----
> From: Pierre-Alain Joye [mailto:pajoye@php.net]
> Sent: Wednesday, November 15, 2006 7:24 PM
> To: php-cvs@lists.php.net
> Subject: [PHP-CVS] cvs: php-src(PHP_5_2) /ext/zip/lib zip_open.c
>
>
> pajoye Wed Nov 15 16:24:24 2006 UTC
>
> Modified files: (Branch: PHP_5_2)
> /php-src/ext/zip/lib zip_open.c
> Log:
> #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
>
> http://cvs.php.net/viewvc.cgi/php-src/ext/zip/lib/zip_open.c?r
1=1.1.2.1&r2=1.1.2.2&diff_format=u
Index: php-src/ext/zip/lib/zip_open.c
diff -u php-src/ext/zip/lib/zip_open.c:1.1.2.1
php-src/ext/zip/lib/zip_open.c:1.1.2.2
--- php-src/ext/zip/lib/zip_open.c:1.1.2.1 Sun Aug 13 21:09:59 2006
+++ php-src/ext/zip/lib/zip_open.c Wed Nov 15 16:24:24 2006
@@ -75,6 +75,10 @@
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) {
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php