From: Joe Watkins Date: Wed, 20 Jan 2016 10:52:27 +0000 (+0000) Subject: fix ReflectionClass::__toString doc block omitted X-Git-Tag: php-7.1.0alpha1~617^2~57 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=11cf826b8960f0d9af5368b1af90ac3f81947f16;p=php fix ReflectionClass::__toString doc block omitted --- diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 7713137e89..461104f394 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -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); }