From: Antony Dovgal Date: Tue, 14 Feb 2006 09:46:16 +0000 (+0000) Subject: add test for bug #36337 X-Git-Tag: php-5.1.3RC1~109 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c65d61a301db232f6f656300370707c0cb51d2b2;p=php add test for bug #36337 --- 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