cvs: /php4/ext/standard basic_functions.c
| From: | Thies C . Arntzen | Date: | Tue, 14 Sep 1999 14:18:18 +0000 |
| Subject: | cvs: /php4/ext/standard basic_functions.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-4430@lists.php.net to get a copy of this message | ||
thies Tue Sep 14 10:18:18 1999 EDT
Modified files:
/php4/ext/standard basic_functions.c
Log:
is_array & friens speedups
Index: php4/ext/standard/basic_functions.c
diff -u php4/ext/standard/basic_functions.c:1.85 php4/ext/standard/basic_functions.c:1.86
--- php4/ext/standard/basic_functions.c:1.85 Tue Sep 14 10:09:57 1999
+++ php4/ext/standard/basic_functions.c Tue Sep 14 10:18:18 1999
@@ -1657,12 +1657,12 @@
void php3_is_type(INTERNAL_FUNCTION_PARAMETERS,int type)
{
- pval *arg;
+ pval **arg;
- if (ARG_COUNT(ht)!=1 || getParameters(ht, 1, &arg)==FAILURE) {
+ if (ARG_COUNT(ht)!=1 || getParametersEx(1, &arg)==FAILURE) {
RETURN_FALSE;
}
- if (arg->type == type) {
+ if ((*arg)->type == type) {
RETURN_TRUE;
} else {
RETURN_FALSE;