cvs: php4(PHP_4_3) /ext/mime_magic mime_magic.c
| From: | Moriyoshi Koizumi | Date: | Mon, 18 Nov 2002 21:23:12 +0000 |
| Subject: | cvs: php4(PHP_4_3) /ext/mime_magic mime_magic.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-16427@lists.php.net to get a copy of this message | ||
moriyoshi Mon Nov 18 16:23:12 2002 EDT
Modified files: (Branch: PHP_4_3)
/php4/ext/mime_magic mime_magic.c
Log:
MFH (binary mode fix)
Index: php4/ext/mime_magic/mime_magic.c
diff -u php4/ext/mime_magic/mime_magic.c:1.13.2.3 php4/ext/mime_magic/mime_magic.c:1.13.2.4
--- php4/ext/mime_magic/mime_magic.c:1.13.2.3 Mon Nov 18 16:16:24 2002
+++ php4/ext/mime_magic/mime_magic.c Mon Nov 18 16:23:11 2002
@@ -15,7 +15,7 @@
| Author: Hartmut Holzgraefe <hartmut@six.de> |
+----------------------------------------------------------------------+
- $Id: mime_magic.c,v 1.13.2.3 2002/11/18 21:16:24 moriyoshi Exp $
+ $Id: mime_magic.c,v 1.13.2.4 2002/11/18 21:23:11 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. */