From: Ilia Alshanetsky Date: Wed, 25 May 2005 03:05:47 +0000 (+0000) Subject: Return error on an invalid input to mime_content_type() function. X-Git-Tag: php-5.0.1b1~170 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=266f2fbf13182e2fbcded86deab8470f9acaea17;p=php Return error on an invalid input to mime_content_type() function. --- diff --git a/ext/mime_magic/mime_magic.c b/ext/mime_magic/mime_magic.c index fd1bd90459..f02e7fb103 100644 --- a/ext/mime_magic/mime_magic.c +++ b/ext/mime_magic/mime_magic.c @@ -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; }