From: Moriyoshi Koizumi Date: Mon, 18 Nov 2002 21:23:11 +0000 (+0000) Subject: MFH (binary mode fix) X-Git-Tag: php-4.3.0RC2~87 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b35690c4b94affa1b8bb133d564b2f2b23f18770;p=php MFH (binary mode fix) --- diff --git a/ext/mime_magic/mime_magic.c b/ext/mime_magic/mime_magic.c index f37eb4726c..a370839a66 100644 --- a/ext/mime_magic/mime_magic.c +++ b/ext/mime_magic/mime_magic.c @@ -982,7 +982,7 @@ static int magic_process(char *filename TSRMLS_DC) 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. */