summaryrefslogtreecommitdiff
path: root/Zend/tests/bug50174.phpt
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2009-11-14 19:17:22 +0000
committerFelipe Pena <felipe@php.net>2009-11-14 19:17:22 +0000
commitfa2bb07a473b69fd1624304103b2cfb12d669702 (patch)
treed0baa17b8553aa440bf20e1a9255717985b95cde /Zend/tests/bug50174.phpt
parentd7f50ac2c41f6a5932bb02bdcd965529c0884a2e (diff)
downloadphp-git-fa2bb07a473b69fd1624304103b2cfb12d669702.tar.gz
- Fixed bug #50174 (Incorrectly matched docComment)
Diffstat (limited to 'Zend/tests/bug50174.phpt')
-rw-r--r--Zend/tests/bug50174.phpt31
1 files changed, 31 insertions, 0 deletions
diff --git a/Zend/tests/bug50174.phpt b/Zend/tests/bug50174.phpt
new file mode 100644
index 0000000000..6ed5733b67
--- /dev/null
+++ b/Zend/tests/bug50174.phpt
@@ -0,0 +1,31 @@
+--TEST--
+Bug #50174 (Incorrectly matched docComment)
+--FILE--
+<?php
+
+class TestClass
+{
+ /** const comment */
+ const C = 0;
+
+ function x() {}
+}
+
+$rm = new ReflectionMethod('TestClass', 'x');
+var_dump($rm->getDocComment());
+
+class TestClass2
+{
+ /** const comment */
+ const C = 0;
+
+ public $x;
+}
+
+$rp = new ReflectionProperty('TestClass2', 'x');
+var_dump($rp->getDocComment());
+
+?>
+--EXPECT--
+bool(false)
+bool(false)