cvs: php-src(PHP_5_0) /ext/mime_magic mime_magic.c

From: Date: Wed, 25 May 2005 03:06:07 +0000
Subject: cvs: php-src(PHP_5_0) /ext/mime_magic mime_magic.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-32005@lists.php.net to get a copy of this message
iliaa Tue May 24 23:06:07 2005 EDT Modified files: (Branch: PHP_5_0) /php-src/ext/mime_magic mime_magic.c Log: MFH: Return error on an invalid input to mime_content_type() function. http://cvs.php.net/diff.php/php-src/ext/mime_magic/mime_magic.c?r1=1.37.2.1&r2=1.37.2.2&ty=u Index: php-src/ext/mime_magic/mime_magic.c diff -u php-src/ext/mime_magic/mime_magic.c:1.37.2.1 php-src/ext/mime_magic/mime_magic.c:1.37.2.2 --- php-src/ext/mime_magic/mime_magic.c:1.37.2.1 Thu Dec 16 07:35:42 2004 +++ php-src/ext/mime_magic/mime_magic.c Tue May 24 23:06:07 2005 @@ -15,7 +15,7 @@ | Author: Hartmut Holzgraefe <hholzgra@php.net> | +----------------------------------------------------------------------+ - $Id: mime_magic.c,v 1.37.2.1 2004/12/16 12:35:42 sniper Exp $ + $Id: mime_magic.c,v 1.37.2.2 2005/05/25 03:06:07 iliaa 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: @@ -345,6 +345,7 @@ /* fallthru if not a stream resource */ default: php_error_docref(NULL TSRMLS_CC, E_WARNING, "can only process string or stream arguments"); + RETURN_FALSE; break; }

« previous php.cvs (#32005) next »