File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
Zend /
tests /
bug50174.phpt
Revision
1.1.1.2 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue May 29 12:34:36 2012 UTC (12 years, 10 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
HEAD
php 5.4.3+patches
1: --TEST--
2: Bug #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:
8: class TestClass
9: {
10: /** const comment */
11: const C = 0;
12:
13: function x() {}
14: }
15:
16: $rm = new ReflectionMethod('TestClass', 'x');
17: var_dump($rm->getDocComment());
18:
19: class TestClass2
20: {
21: /** const comment */
22: const C = 0;
23:
24: public $x;
25: }
26:
27: $rp = new ReflectionProperty('TestClass2', 'x');
28: var_dump($rp->getDocComment());
29:
30: ?>
31: --EXPECT--
32: bool(false)
33: bool(false)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>