|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-11-14 19:17 UTC] svn@php.net
[2009-11-14 19:17 UTC] felipe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 15:00:01 2025 UTC |
Description: ------------ ReflectionMethod and ReflectionProperty may return invalid phpDocComment. See examples: Reproduce code: --------------- 1) class TestClass { /** const comment */ const C = 0; function x() {} } $rm = new ReflectionMethod('TestClass', 'x'); echo $rm->getDocComment(); // OR 2) class TestClass { /** const comment */ const C = 0; var $x; } $rp = new ReflectionProperty('TestClass', 'x'); echo $rp->getDocComment(); Expected result: ---------------- FALSE Actual result: -------------- /** const comment */