1
0
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:
Ilia Alshanetsky
2005-05-25 03:06:07 +00:00
parent 6b1cc632d1
commit 1930be2528

View File

@@ -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;
}