--TEST-- ReflectionMethod::getDocComment() uses wrong comment block --INI-- opcache.save_comments=1 --FILE-- getDocComment())); foreach($r->getMethods() as $m) { var_dump(strip_doc_comment($m->getDocComment())); } ?> --EXPECT-- string(19) "Comment for class A" string(15) "Method A::bla()" bool(false) bool(false) string(22) "* Comment for A::baz()"