cvs: php4 /ext/standard type.c
| From: | Derick Rethans | Date: | Mon, 08 Jul 2002 11:50:01 +0000 |
| Subject: | cvs: php4 /ext/standard type.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-12748@lists.php.net to get a copy of this message | ||
derick Mon Jul 8 07:50:01 2002 EDT
Modified files:
/php4/ext/standard type.c
Log:
- Add warning to is_*() functions if more than one argument was passed
Index: php4/ext/standard/type.c
diff -u php4/ext/standard/type.c:1.15 php4/ext/standard/type.c:1.16
--- php4/ext/standard/type.c:1.15 Thu Feb 28 03:26:49 2002
+++ php4/ext/standard/type.c Mon Jul 8 07:50:01 2002
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: type.c,v 1.15 2002/02/28 08:26:49 sebastian Exp $ */
+/* $Id: type.c,v 1.16 2002/07/08 11:50:01 derick Exp $ */
#include "php.h"
@@ -195,6 +195,7 @@
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;
}