summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2005-06-16 23:02:23 +0000
committerMarcus Boerger <helly@php.net>2005-06-16 23:02:23 +0000
commit7a7cda7a4cac9c2228b88db0b044e5f1eae20a44 (patch)
tree87fc24f7f482cc55fa2edc6fdd5df32a01822409 /ext/reflection/php_reflection.c
parent353e07f57b4d3cfcaa665464c08be506b47575d5 (diff)
downloadphp-git-7a7cda7a4cac9c2228b88db0b044e5f1eae20a44.tar.gz
- Internal functions/methods can now return by reference
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r--ext/reflection/php_reflection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index e1f61687f9..56af747dee 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -654,7 +654,7 @@ static void _function_string(string *str, zend_function *fptr, char* indent TSRM
}
string_printf(str, fptr->common.scope ? "method " : "function ");
- if (fptr->type == ZEND_USER_FUNCTION && fptr->op_array.return_reference) {
+ if (fptr->op_array.return_reference) {
string_printf(str, "&");
}
string_printf(str, "%s ] {\n", fptr->common.function_name);