summaryrefslogtreecommitdiff
path: root/ext/pcre/tests/bug27011.phpt
blob: 6fa88ef379aefde539e01008b487d625396db431 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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) {
}