iliaa           Tue May 24 23:05:49 2005 EDT

  Modified files:              
    /php-src/ext/mime_magic     mime_magic.c 
  Log:
  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.39&r2=1.40&ty=u
Index: php-src/ext/mime_magic/mime_magic.c
diff -u php-src/ext/mime_magic/mime_magic.c:1.39 
php-src/ext/mime_magic/mime_magic.c:1.40
--- php-src/ext/mime_magic/mime_magic.c:1.39    Thu Dec 16 07:34:31 2004
+++ php-src/ext/mime_magic/mime_magic.c Tue May 24 23:05:47 2005
@@ -15,7 +15,7 @@
   | Author: Hartmut Holzgraefe  <[EMAIL PROTECTED]>                       |
   +----------------------------------------------------------------------+
 
-  $Id: mime_magic.c,v 1.39 2004/12/16 12:34:31 sniper Exp $ 
+  $Id: mime_magic.c,v 1.40 2005/05/25 03:05:47 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:
@@ -344,6 +344,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;
        }
 

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to