mirror of
https://github.com/php/php-src.git
synced 2026-03-27 01:32:22 +01:00
MFH: Return error on an invalid input to mime_content_type() function.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user