summaryrefslogtreecommitdiff
path: root/ext/standard
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2002-07-08 11:50:01 +0000
committerDerick Rethans <derick@php.net>2002-07-08 11:50:01 +0000
commitfca02312061b2e542d609fe266abb769e757f42d (patch)
treebc750997816e23b99f460355797ea4dceb5a301c /ext/standard
parent392a452c80e91ce2b2134efe9fde62f677a97330 (diff)
downloadphp-git-fca02312061b2e542d609fe266abb769e757f42d.tar.gz
- Add warning to is_*() functions if more than one argument was passed
Diffstat (limited to 'ext/standard')
-rw-r--r--ext/standard/type.c1
1 files changed, 1 insertions, 0 deletions
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;
}