summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoriyoshi Koizumi <moriyoshi@php.net>2002-11-18 21:20:45 +0000
committerMoriyoshi Koizumi <moriyoshi@php.net>2002-11-18 21:20:45 +0000
commitb75f2df3d433d9d4fb795a1ce131d54aebeef3f6 (patch)
treef117de120ab0ca5bdfcfc5c4a0e0bfa2017badd9
parenta9d750903643f157df28ab115ef4a09a8481d037 (diff)
downloadphp-git-b75f2df3d433d9d4fb795a1ce131d54aebeef3f6.tar.gz
We have to use binary mode here.
-rw-r--r--ext/mime_magic/mime_magic.c2
1 files changed, 1 insertions, 1 deletions
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. */