]> granicus.if.org Git - php/commitdiff
- Add warning to is_*() functions if more than one argument was passed
authorDerick Rethans <derick@php.net>
Mon, 8 Jul 2002 11:50:01 +0000 (11:50 +0000)
committerDerick Rethans <derick@php.net>
Mon, 8 Jul 2002 11:50:01 +0000 (11:50 +0000)
ext/standard/type.c

index cf6ba488676ba68505de2d9301a4ebe85ac7a02f..4527257c2ef1cc0560e8a81cce3a89aa62f00833 100644 (file)
@@ -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;
        }