summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-05-25 03:06:07 +0000
committerIlia Alshanetsky <iliaa@php.net>2005-05-25 03:06:07 +0000
commit1930be2528da4b9890cf2ada8d26ec99663fefaf (patch)
tree40c0c5d78063ce30f1ce0c9c038211b01eda4939
parent6b1cc632d18a6b8ed1096a669669163dab547792 (diff)
downloadphp-git-1930be2528da4b9890cf2ada8d26ec99663fefaf.tar.gz
MFH: Return error on an invalid input to mime_content_type() function.
-rw-r--r--ext/mime_magic/mime_magic.c1
1 files changed, 1 insertions, 0 deletions
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;
}