]> granicus.if.org Git - php/commitdiff
Return error on an invalid input to mime_content_type() function.
authorIlia Alshanetsky <iliaa@php.net>
Wed, 25 May 2005 03:05:47 +0000 (03:05 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 25 May 2005 03:05:47 +0000 (03:05 +0000)
ext/mime_magic/mime_magic.c

index fd1bd904595ff8462a04ad22c3084d96139d0a08..f02e7fb1037d15d9cc09d6facbec550c6a829159 100644 (file)
@@ -344,6 +344,7 @@ PHP_FUNCTION(mime_content_type)
                /* 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;
        }