--TEST-- Bug #55156 (ReflectionClass::getDocComment() returns comment even though the class has none) --INI-- opcache.save_comments=1 --FILE-- getDocComment()); /** test1 */ class bar { } /** test2 */ class foo extends namespace\bar { } $x = new \ReflectionClass('foo\bar'); var_dump($x->getDocComment()); $x = new \ReflectionClass('foo\foo'); var_dump($x->getDocComment()); } ?> --EXPECT-- bool(false) string(12) "/** test1 */" string(12) "/** test2 */"