From: Marcus Boerger Date: Mon, 4 Oct 2004 08:58:47 +0000 (+0000) Subject: - Add new test X-Git-Tag: PRE_NEW_VM_GEN_PATCH~104 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3d29cd72d599dd1cbb8aa07c4e65144119ab0585;p=php - Add new test --- diff --git a/Zend/tests/bug27798.phpt b/Zend/tests/bug27798.phpt new file mode 100755 index 0000000000..f0d1cd5e99 --- /dev/null +++ b/Zend/tests/bug27798.phpt @@ -0,0 +1,72 @@ +--TEST-- +Bug #27798 (private / protected variables not exposed by get_object_vars() inside class) +--FILE-- + +===DONE=== +--EXPECT-- +Base::__construct +array(3) { + ["Foo"]=> + int(1) + ["Bar"]=> + int(2) + ["Baz"]=> + int(3) +} +array(1) { + ["Foo"]=> + int(1) +} +Base::__construct +array(3) { + ["Baz"]=> + int(4) + ["Foo"]=> + int(1) + ["Bar"]=> + int(2) +} +Child::__construct +array(3) { + ["Baz"]=> + int(4) + ["Foo"]=> + int(1) + ["Bar"]=> + int(2) +} +array(1) { + ["Foo"]=> + int(1) +} +===DONE===