From c65d61a301db232f6f656300370707c0cb51d2b2 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Tue, 14 Feb 2006 09:46:16 +0000 Subject: [PATCH] add test for bug #36337 --- ext/reflection/tests/bug36337.phpt | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 ext/reflection/tests/bug36337.phpt diff --git a/ext/reflection/tests/bug36337.phpt b/ext/reflection/tests/bug36337.phpt new file mode 100644 index 0000000000..f4d78f9901 --- /dev/null +++ b/ext/reflection/tests/bug36337.phpt @@ -0,0 +1,28 @@ +--TEST-- +Bug #36337 (ReflectionProperty fails to return correct visibility) +--FILE-- +isProtected()); + } + +} + +final class myEnum extends enum { + public $_values = array( + 0 => 'No value', + ); +} + +$x = new myEnum(); + +echo "Done\n"; +?> +--EXPECT-- +bool(false) +Done -- 2.40.0