com php-src: fixes to reflection: ext/reflection/php_reflecti on.c
| From: | Anatol Belski | Date: | Wed, 16 Oct 2013 10:10:52 +0000 |
| Subject: | com php-src: fixes to reflection: ext/reflection/php_reflecti on.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-73468@lists.php.net to get a copy of this message | ||
Commit: a5cda49fe94fb6f52ff0098defbe50d6c0b3ad96
Author: Anatol Belski <ab@php.net> Fri, 23 Aug 2013 01:26:17 -0700
Parents: 3b55e6024531037bd171d96e37104d5c78a0bcdf
Branches: str_size_and_int64
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a5cda49fe94fb6f52ff0098defbe50d6c0b3ad96
Log:
fixes to reflection
Changed paths:
M ext/reflection/php_reflection.c
Diff:
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index a66b195..fbc887d 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -1554,9 +1554,9 @@ ZEND_METHOD(reflection, export)
Returns an array of modifier names */
ZEND_METHOD(reflection, getModifierNames)
{
- long modifiers;
+ php_int_t modifiers;
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &modifiers) == FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "i", &modifiers) == FAILURE) {
return;
}
@@ -3755,7 +3755,7 @@ ZEND_METHOD(reflection_class, getMethod)
/* }}} */
/* {{{ _addmethod */
-static void _addmethod(zend_function *mptr, zend_class_entry *ce, zval *retval, long filter, zval
*obj TSRMLS_DC)
+static void _addmethod(zend_function *mptr, zend_class_entry *ce, zval *retval, php_int_t filter,
zval *obj TSRMLS_DC)
{
zval *method;
zend_str_size len = strlen(mptr->common.function_name);
@@ -3783,7 +3783,7 @@ static int _addmethod_va(zend_function *mptr TSRMLS_DC, int num_args, va_list
ar
{
zend_class_entry *ce = *va_arg(args, zend_class_entry**);
zval *retval = va_arg(args, zval*);
- long filter = va_arg(args, long);
+ php_int_t filter = va_arg(args, php_int_t);
zval *obj = va_arg(args, zval *);
_addmethod(mptr, ce, retval, filter, obj TSRMLS_CC);
@@ -3797,12 +3797,12 @@ ZEND_METHOD(reflection_class, getMethods)
{
reflection_object *intern;
zend_class_entry *ce;
- long filter = 0;
+ php_int_t filter = 0;
int argc = ZEND_NUM_ARGS();
METHOD_NOTSTATIC(reflection_class_ptr);
if (argc) {
- if (zend_parse_parameters(argc TSRMLS_CC, "|l", &filter) == FAILURE) {
+ if (zend_parse_parameters(argc TSRMLS_CC, "|i", &filter) == FAILURE) {
return;
}
} else {
@@ -3987,12 +3987,12 @@ ZEND_METHOD(reflection_class, getProperties)
{
reflection_object *intern;
zend_class_entry *ce;
- long filter = 0;
+ php_int_t filter = 0;
int argc = ZEND_NUM_ARGS();
METHOD_NOTSTATIC(reflection_class_ptr);
if (argc) {
- if (zend_parse_parameters(argc TSRMLS_CC, "|l", &filter) == FAILURE) {
+ if (zend_parse_parameters(argc TSRMLS_CC, "|i", &filter) == FAILURE) {
return;
}
} else {