]> granicus.if.org Git - php/commitdiff
- Small reordering
authorMarcus Boerger <helly@php.net>
Sat, 3 Jan 2009 12:27:43 +0000 (12:27 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 3 Jan 2009 12:27:43 +0000 (12:27 +0000)
ext/reflection/php_reflection.c

index d9e590f7f3cffb9eeb65607521f2649af5d5bc93..0dcd2de55cff7e22118705ab0eed04b355c6f20e 100644 (file)
@@ -857,8 +857,6 @@ static void _function_string(string *str, zend_function *fptr, zend_class_entry
                                                fptr->op_array.line_start,
                                                fptr->op_array.line_end);
        }
-       string_init(&param_indent);
-       string_printf(&param_indent, "%s  ", indent);
        if (closure) {
                const zend_function *closure_fptr = zend_get_closure_method_def(closure TSRMLS_CC);
                if (closure_fptr->type == ZEND_USER_FUNCTION && closure_fptr->op_array.static_variables) {
@@ -881,6 +879,8 @@ static void _function_string(string *str, zend_function *fptr, zend_class_entry
                        }
                }
        }
+       string_init(&param_indent);
+       string_printf(&param_indent, "%s  ", indent);
        _function_parameter_string(str, fptr, param_indent.string TSRMLS_CC);
        string_free(&param_indent);
        string_printf(str, "%s}\n", indent);