summaryrefslogtreecommitdiff
path: root/tests/lang/bug19566.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lang/bug19566.phpt')
-rw-r--r--tests/lang/bug19566.phpt10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/lang/bug19566.phpt b/tests/lang/bug19566.phpt
new file mode 100644
index 0000000..45c3bc5
--- /dev/null
+++ b/tests/lang/bug19566.phpt
@@ -0,0 +1,10 @@
+--TEST--
+Bug #19566 (get_declared_classes() segfaults)
+--FILE--
+<?php
+class foo {}
+$result = get_declared_classes();
+var_dump(array_search('foo', $result));
+?>
+--EXPECTF--
+int(%d)