From 07e7092729b94f8de24ff96d3a876d0da4eaebc2 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Wed, 22 Feb 2006 15:45:25 +0000 Subject: [PATCH] Added test for bug #36434 --- ext/reflection/tests/bug36434.phpt | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 ext/reflection/tests/bug36434.phpt diff --git a/ext/reflection/tests/bug36434.phpt b/ext/reflection/tests/bug36434.phpt new file mode 100644 index 0000000000..c92c358a29 --- /dev/null +++ b/ext/reflection/tests/bug36434.phpt @@ -0,0 +1,31 @@ +--TEST-- +Bug #36434 (Properties from parent class fail to indetify their true origin) +--FILE-- +ancester; + } +} +class foo extends ancester +{ +public $bar = "1"; + function foo() + { + return $this->bar; + } +} + +$r = new ReflectionClass('foo'); +foreach ($r->GetProperties() as $p) +{ + echo $p->getName(). " ". $p->getDeclaringClass()->getName()."\n"; +} + +?> +--EXPECT-- +bar foo +ancester ancester -- 2.50.1