mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-26 18:35:42 +00:00
fixes to reflection
This commit is contained in:
1 parent
3aed22ae8e
commit
ff233b591c
1 file changed
+8
-8
@@ -1551,9 +1551,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;
|
||||
}
|
||||
|
||||
@@ -3728,7 +3728,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);
|
||||
@@ -3756,7 +3756,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);
|
||||
@@ -3770,12 +3770,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 {
|
||||
@@ -3960,12 +3960,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 {
|
||||
|
||||
Reference in new issue
Block a user