Hi!
There is an inconsistency in the Zend API (See #27097) so integers are
reported as "integer" by zend_zval_type_name but "long" by
zend_parse_arg_impl causing confusion for users not knowing C,
the attached patch fixes it.
Stefan
--
Regards,
Stefan Walk
<[EMAIL PROTECTED]>
Index: zend_API.c
===================================================================
RCS file: /repository/ZendEngine2/zend_API.c,v
retrieving revision 1.237
diff -u -r1.237 zend_API.c
--- zend_API.c 23 Jan 2004 22:04:42 -0000 1.237
+++ zend_API.c 30 Jan 2004 16:11:10 -0000
@@ -236,7 +236,7 @@
int type;
if ((type =
is_numeric_string(Z_STRVAL_PP(arg), Z_STRLEN_PP(arg), p, &d, 0)) == 0) {
- return "long";
+ return "integer";
} else if (type == IS_DOUBLE) {
*p = (long) d;
}
@@ -255,7 +255,7 @@
case IS_OBJECT:
case IS_RESOURCE:
default:
- return "long";
+ return "integer";
}
}
break;
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php