summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/bug41884.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/reflection/tests/bug41884.phpt')
-rw-r--r--ext/reflection/tests/bug41884.phpt25
1 files changed, 25 insertions, 0 deletions
diff --git a/ext/reflection/tests/bug41884.phpt b/ext/reflection/tests/bug41884.phpt
new file mode 100644
index 000000000..f8c0a0a2b
--- /dev/null
+++ b/ext/reflection/tests/bug41884.phpt
@@ -0,0 +1,25 @@
+--TEST--
+Bug #41884 (ReflectionClass::getDefaultProperties() does not handle static attributes)
+--FILE--
+<?php
+
+class Foo
+{
+ protected static $fooStatic = 'foo';
+ protected $foo = 'foo';
+}
+
+$class = new ReflectionClass('Foo');
+
+var_dump($class->getDefaultProperties());
+
+echo "Done\n";
+?>
+--EXPECTF--
+array(2) {
+ ["fooStatic"]=>
+ string(3) "foo"
+ ["foo"]=>
+ string(3) "foo"
+}
+Done