Annotation of embedaddon/php/ext/reflection/tests/bug36434.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Reflection Bug #36434 (Properties from parent class fail to indetify their true origin)
3: --FILE--
4: <?php
5: class ancester
6: {
7: public $ancester = 0;
8: function ancester()
9: {
10: return $this->ancester;
11: }
12: }
13: class foo extends ancester
14: {
15: public $bar = "1";
16: function foo()
17: {
18: return $this->bar;
19: }
20: }
21:
22: $r = new ReflectionClass('foo');
23: foreach ($r->GetProperties() as $p)
24: {
25: echo $p->getName(). " ". $p->getDeclaringClass()->getName()."\n";
26: }
27:
28: ?>
29: --EXPECT--
30: bar foo
31: ancester ancester
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>