From 1beb30e468b291c0a9dba36c2fb46b4f99e0a3af Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Wed, 13 Aug 2008 21:57:00 +0000 Subject: [PATCH] - move declaration on top and fix build error --- ext/reflection/php_reflection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 386e35196a..f22f75aed6 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -3357,9 +3357,9 @@ static void _addmethod(zend_function *mptr, zend_class_entry *ce, zval *retval, zend_function *closure; if (mptr->common.fn_flags & filter) { - ALLOC_ZVAL(method); unsigned int lc_name_len; zstr lc_name = zend_u_str_case_fold(ZEND_STR_TYPE, mptr->common.function_name, len, 1, &lc_name_len); + ALLOC_ZVAL(method); if (ce == zend_ce_closure && obj && (lc_name_len == sizeof(ZEND_INVOKE_FUNC_NAME)-1) && ZEND_U_EQUAL(ZEND_STR_TYPE, lc_name, lc_name_len, ZEND_INVOKE_FUNC_NAME, sizeof(ZEND_INVOKE_FUNC_NAME)-1) && (closure = zend_get_closure_invoke_method(obj TSRMLS_CC)) != NULL) -- 2.50.1