From 8376b7eff787e14e649177b2471493e9a95c7a7a Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Sun, 31 Aug 2003 11:21:30 +0000 Subject: Check whether we may access tat union --- ext/reflection/php_reflection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/reflection/php_reflection.c') diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 21c8bf95f7..f5a0e6cd7f 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -388,7 +388,7 @@ static void _function_string(string *str, zend_function *fptr, char* indent TSRM } string_printf(str, fptr->common.scope ? "method " : "function "); - if (fptr->op_array.return_reference && !(fptr->common.fn_flags & (ZEND_ACC_CTOR|ZEND_ACC_DTOR))) { + if (fptr->type == ZEND_USER_FUNCTION && fptr->op_array.return_reference) { string_printf(str, "&"); } string_printf(str, "%s ] {\n", fptr->common.function_name); -- cgit v1.2.1