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