summaryrefslogtreecommitdiff
path: root/ext/pcre/tests/bug27011.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pcre/tests/bug27011.phpt')
-rw-r--r--ext/pcre/tests/bug27011.phpt13
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/pcre/tests/bug27011.phpt b/ext/pcre/tests/bug27011.phpt
new file mode 100644
index 0000000..6fa88ef
--- /dev/null
+++ b/ext/pcre/tests/bug27011.phpt
@@ -0,0 +1,13 @@
+--TEST--
+Bug #27011 (segfault in preg_match_all())
+--FILE--
+<?php
+
+var_dump(preg_match_all('|(\w+)://([^\s"<]*[\w+#?/&=])|', "This is a text string", $matches, PREG_SET_ORDER));
+var_dump($matches);
+
+?>
+--EXPECT--
+int(0)
+array(0) {
+}