summaryrefslogtreecommitdiff
path: root/ext/reflection/tests
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2007-07-11 22:06:54 +0000
committerAntony Dovgal <tony2001@php.net>2007-07-11 22:06:54 +0000
commitd3ac98438591d27ad83828b73fa7cd295660a7b7 (patch)
tree3c98de61e4c31c1eff58a104ac2810adadfc514c /ext/reflection/tests
parent0261432888011a5df27fe8e1911aa23d48e00043 (diff)
downloadphp-git-d3ac98438591d27ad83828b73fa7cd295660a7b7.tar.gz
MFH
Diffstat (limited to 'ext/reflection/tests')
-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 0000000000..f8c0a0a2bc
--- /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