Return error on an invalid input to mime_content_type() function.

This commit is contained in:
Ilia Alshanetsky 2005-05-25 03:05:47 +00:00
parent d2371d58cd
commit 266f2fbf13

View File

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