summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.c
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2006-06-01 14:31:22 +0000
committerAntony Dovgal <tony2001@php.net>2006-06-01 14:31:22 +0000
commit17ad6e2ebffc21dc7315e1b27a55149efa7fa3f7 (patch)
tree888ec7c5c2d11c74883774a13b08c8cad8210dd2 /ext/reflection/php_reflection.c
parentfbeb246a3a6e4a417f42d5157d5b0bc64d2b897c (diff)
downloadphp-git-17ad6e2ebffc21dc7315e1b27a55149efa7fa3f7.tar.gz
apply correct fix
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r--ext/reflection/php_reflection.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index 2bc640f877..17ac0acb32 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -2926,7 +2926,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**);
@@ -2934,6 +2934,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);
@@ -3055,7 +3056,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**);
@@ -3067,6 +3068,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);