xref: /php-src/ext/pcre/tests/bug27011.phpt (revision ccd97f3a)
1--TEST--
2Bug #27011 (segfault in preg_match_all())
3--FILE--
4<?php
5
6var_dump(preg_match_all('|(\w+)://([^\s"<]*[\w+#?/&=])|', "This is a text string", $matches, PREG_SET_ORDER));
7var_dump($matches);
8
9?>
10--EXPECT--
11int(0)
12array(0) {
13}
14