cvs: php4 /ext/mime_magic mime_magic.c

From: Date: Fri, 15 Nov 2002 16:25:31 +0000
Subject: cvs: php4 /ext/mime_magic mime_magic.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-16289@lists.php.net to get a copy of this message
moriyoshi Fri Nov 15 11:25:31 2002 EDT Modified files: /php4/ext/mime_magic mime_magic.c Log: Always use binary mode for magic files Index: php4/ext/mime_magic/mime_magic.c diff -u php4/ext/mime_magic/mime_magic.c:1.15 php4/ext/mime_magic/mime_magic.c:1.16 --- php4/ext/mime_magic/mime_magic.c:1.15 Fri Nov 15 10:13:30 2002 +++ php4/ext/mime_magic/mime_magic.c Fri Nov 15 11:25:31 2002 @@ -15,7 +15,7 @@ | Author: Hartmut Holzgraefe <hartmut@six.de> | +----------------------------------------------------------------------+ - $Id: mime_magic.c,v 1.15 2002/11/15 15:13:30 moriyoshi Exp $ + $Id: mime_magic.c,v 1.16 2002/11/15 16:25:31 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: @@ -348,7 +348,7 @@ magic_server_config_rec *conf = &mime_global; fname = conf->magicfile; /* todo cwd? */ - f = fopen(fname, "rt"); + f = fopen(fname, "rb"); if (f == NULL) { (int) conf->magic = -1; return -1;

« previous php.cvs (#16289) next »