bug50174.phpt 432 B

12345678910111213141516171819202122232425262728293031
  1. --TEST--
  2. Bug #50174 (Incorrectly matched docComment)
  3. --FILE--
  4. <?php
  5. class TestClass
  6. {
  7. /** const comment */
  8. const C = 0;
  9. function x() {}
  10. }
  11. $rm = new ReflectionMethod('TestClass', 'x');
  12. var_dump($rm->getDocComment());
  13. class TestClass2
  14. {
  15. /** const comment */
  16. const C = 0;
  17. public $x;
  18. }
  19. $rp = new ReflectionProperty('TestClass2', 'x');
  20. var_dump($rp->getDocComment());
  21. ?>
  22. --EXPECT--
  23. bool(false)
  24. bool(false)