diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2005-05-25 03:05:47 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2005-05-25 03:05:47 +0000 |
commit | 266f2fbf13182e2fbcded86deab8470f9acaea17 (patch) | |
tree | ff3d8832b5aa78e375c4dc404814019ba10d384b /ext/mime_magic | |
parent | d2371d58cd0d71c90caa1e6d20e0e0561d0f248a (diff) | |
download | php-git-266f2fbf13182e2fbcded86deab8470f9acaea17.tar.gz |
Return error on an invalid input to mime_content_type() function.
Diffstat (limited to 'ext/mime_magic')
-rw-r--r-- | ext/mime_magic/mime_magic.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |