From: Pierre Joye Date: Wed, 13 Aug 2008 21:57:00 +0000 (+0000) Subject: - move declaration on top and fix build error X-Git-Tag: BEFORE_HEAD_NS_CHANGE~735 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1beb30e468b291c0a9dba36c2fb46b4f99e0a3af;p=php - move declaration on top and fix build error --- 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)