summaryrefslogtreecommitdiff
path: root/ext/pcre/tests/bug72688.phpt
blob: 715743c73dbf5d74e38471d6825aca608daafd0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
Bug #72688 (preg_match missing group names in matches)
--FILE--
<?php

$pattern = [];
for ($i = 0; $i < 300; $i++) {
    $pattern[] = "(?'group{$i}'{$i}$)";
}
$fullPattern = '/' . implode('|', $pattern) . '/uix';

preg_match($fullPattern, '290', $matches);

var_dump($matches['group290']);
?>
--EXPECT--
string(3) "290"