summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2006-02-14 09:46:45 +0000
committerAntony Dovgal <tony2001@php.net>2006-02-14 09:46:45 +0000
commit2c24249cccb89b82285b425c64fc71700cf14de0 (patch)
treeb07368820086d8172fb4abdd8f2df833f3226749
parent7ab93bee97adb00f76a7a7fa39c152595054edc7 (diff)
downloadphp-git-2c24249cccb89b82285b425c64fc71700cf14de0.tar.gz
add test for bug #36337
-rw-r--r--ext/reflection/tests/bug36337.phpt28
1 files changed, 28 insertions, 0 deletions
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--
+<?php
+
+abstract class enum {
+ protected $_values;
+
+ public function __construct() {
+ $property = new ReflectionProperty(get_class($this),'_values');
+ var_dump($property->isProtected());
+ }
+
+}
+
+final class myEnum extends enum {
+ public $_values = array(
+ 0 => 'No value',
+ );
+}
+
+$x = new myEnum();
+
+echo "Done\n";
+?>
+--EXPECT--
+bool(false)
+Done