xref: /PHP-7.3/ext/pcre/tests/bug27011.phpt (revision 1f655451)
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