From 8c04c51f9b8aacceee0a0ea21e1f394912359be8 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Thu, 1 Jun 2006 14:31:02 +0000 Subject: [PATCH] ignore my previous fix, it was wrong =) --- ext/reflection/php_reflection.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 08ddbf896e..a1f1ea100d 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -2947,7 +2947,7 @@ ZEND_METHOD(reflection_class, getMethod) /* }}} */ /* {{{ _addmethod */ -static int _addmethod(zend_function *mptr, int num_args, va_list args, zend_hash_key *hash_key TSRMLS_DC) +static int _addmethod(zend_function *mptr, int num_args, va_list args, zend_hash_key *hash_key) { zval *method; zend_class_entry *ce = *va_arg(args, zend_class_entry**); @@ -2955,6 +2955,7 @@ static int _addmethod(zend_function *mptr, int num_args, va_list args, zend_hash long filter = va_arg(args, long); if (mptr->common.fn_flags & filter) { + TSRMLS_FETCH(); ALLOC_ZVAL(method); reflection_method_factory(ce, mptr, method TSRMLS_CC); add_next_index_zval(retval, method); @@ -3079,7 +3080,7 @@ ZEND_METHOD(reflection_class, getProperty) /* }}} */ /* {{{ _addproperty */ -static int _addproperty(zend_property_info *pptr, int num_args, va_list args, zend_hash_key *hash_key TSRMLS_DC) +static int _addproperty(zend_property_info *pptr, int num_args, va_list args, zend_hash_key *hash_key) { zval *property; zend_class_entry *ce = *va_arg(args, zend_class_entry**); @@ -3091,6 +3092,7 @@ static int _addproperty(zend_property_info *pptr, int num_args, va_list args, ze } if (pptr->flags & filter) { + TSRMLS_FETCH(); ALLOC_ZVAL(property); reflection_property_factory(ce, pptr, property TSRMLS_CC); add_next_index_zval(retval, property); -- 2.40.0