From 1930be2528da4b9890cf2ada8d26ec99663fefaf Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Wed, 25 May 2005 03:06:07 +0000 Subject: [PATCH] MFH: Return error on an invalid input to mime_content_type() function. --- ext/mime_magic/mime_magic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/mime_magic/mime_magic.c b/ext/mime_magic/mime_magic.c index c152ff1b36..f13b1e3bb5 100644 --- a/ext/mime_magic/mime_magic.c +++ b/ext/mime_magic/mime_magic.c @@ -345,6 +345,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; } -- 2.40.0