From: Derick Rethans Date: Mon, 8 Jul 2002 11:50:01 +0000 (+0000) Subject: - Add warning to is_*() functions if more than one argument was passed X-Git-Tag: dev~391 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fca02312061b2e542d609fe266abb769e757f42d;p=php - Add warning to is_*() functions if more than one argument was passed --- diff --git a/ext/standard/type.c b/ext/standard/type.c index cf6ba48867..4527257c2e 100644 --- a/ext/standard/type.c +++ b/ext/standard/type.c @@ -195,6 +195,7 @@ static void php_is_type(INTERNAL_FUNCTION_PARAMETERS, int type) pval **arg; if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) { + php_error (E_WARNING, "%s(): Only one argument expected", get_active_function_name (TSRMLS_CC)); RETURN_FALSE; }