]> granicus.if.org Git - php/commitdiff
fix ReflectionClass::__toString doc block omitted
authorJoe Watkins <krakjoe@php.net>
Wed, 20 Jan 2016 10:52:27 +0000 (10:52 +0000)
committerJoe Watkins <krakjoe@php.net>
Wed, 20 Jan 2016 10:54:55 +0000 (10:54 +0000)
ext/reflection/php_reflection.c

index 7713137e8913e9cd586a94dff9f5b81a08465526..461104f394ada647a100f8dcded331b15540f003 100644 (file)
@@ -386,7 +386,7 @@ static void _class_string(string *str, zend_class_entry *ce, zval *obj, char *in
 
        /* TBD: Repair indenting of doc comment (or is this to be done in the parser?) */
        if (ce->type == ZEND_USER_CLASS && ce->info.user.doc_comment) {
-               string_printf(str, "%s%s", indent, ce->info.user.doc_comment);
+               string_printf(str, "%s%s", indent, ZSTR_VAL(ce->info.user.doc_comment));
                string_write(str, "\n", 1);
        }