xref: /PHP-7.1/Zend/tests/bug50174.phpt (revision e613889d)
1--TEST--
2Bug #50174 (Incorrectly matched docComment)
3--SKIPIF--
4<?php if (!extension_loaded('reflection') || !extension_loaded('spl')) print "skip SPL and reflection extensions required"; ?>
5--FILE--
6<?php
7
8class TestClass
9{
10	/** const comment */
11	const C = 0;
12
13	function x() {}
14}
15
16$rm = new ReflectionMethod('TestClass', 'x');
17var_dump($rm->getDocComment());
18
19class TestClass2
20{
21	/** const comment */
22	const C = 0;
23
24	public $x;
25}
26
27$rp = new ReflectionProperty('TestClass2', 'x');
28var_dump($rp->getDocComment());
29
30?>
31--EXPECT--
32bool(false)
33bool(false)
34