mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
Return error on an invalid input to mime_content_type() function.
This commit is contained in:
parent
d2371d58cd
commit
266f2fbf13
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user