summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/bug30856.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/reflection/tests/bug30856.phpt')
-rwxr-xr-xext/reflection/tests/bug30856.phpt20
1 files changed, 20 insertions, 0 deletions
diff --git a/ext/reflection/tests/bug30856.phpt b/ext/reflection/tests/bug30856.phpt
new file mode 100755
index 000000000..6c6d3171a
--- /dev/null
+++ b/ext/reflection/tests/bug30856.phpt
@@ -0,0 +1,20 @@
+--TEST--
+Bug #30856 (ReflectionClass::getStaticProperties segfaults)
+--FILE--
+<?php
+class bogus {
+ const C = 'test';
+ static $a = bogus::C;
+}
+
+$class = new ReflectionClass('bogus');
+
+var_dump($class->getStaticProperties());
+?>
+===DONE===
+--EXPECT--
+array(1) {
+ ["a"]=>
+ string(4) "test"
+}
+===DONE===