Browse Source

- Internal functions/methods can now return by reference

PHP-5.1
Marcus Boerger 21 years ago
parent
commit
7a7cda7a4c
  1. 2
      Zend/zend_reflection_api.c
  2. 2
      ext/reflection/php_reflection.c

2
Zend/zend_reflection_api.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);

2
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);

Loading…
Cancel
Save