moriyoshi Mon Nov 18 16:20:45 2002 EDT Modified files: /php4/ext/mime_magic mime_magic.c Log: We have to use binary mode here. Index: php4/ext/mime_magic/mime_magic.c diff -u php4/ext/mime_magic/mime_magic.c:1.17 php4/ext/mime_magic/mime_magic.c:1.18 --- php4/ext/mime_magic/mime_magic.c:1.17 Mon Nov 18 16:15:41 2002 +++ php4/ext/mime_magic/mime_magic.c Mon Nov 18 16:20:45 2002 @@ -15,7 +15,7 @@ | Author: Hartmut Holzgraefe <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ - $Id: mime_magic.c,v 1.17 2002/11/18 21:15:41 moriyoshi Exp $ + $Id: mime_magic.c,v 1.18 2002/11/18 21:20:45 moriyoshi Exp $ This module contains a lot of stuff taken from Apache mod_mime_magic, so the license section is a little bit longer than usual: @@ -982,7 +982,7 @@ return result; } - stream = php_stream_open_wrapper(filename, "r", IGNORE_PATH | ENFORCE_SAFE_MODE | REPORT_ERRORS, NULL); + stream = php_stream_open_wrapper(filename, "rb", IGNORE_PATH | ENFORCE_SAFE_MODE +| REPORT_ERRORS, NULL); if (stream == NULL) { /* We can't open it, but we were able to stat it. */
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php