]> 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:52:27 +0000 (10:52 +0000)
ext/reflection/php_reflection.c

index b81ce75525b685586425ed2adfc1ae775e740e10..8e6a3c0d71d25c5c48cd558b44a992364d5dbf50 100644 (file)
@@ -383,7 +383,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);
        }