1--TEST--
2Bug #47662 (support more than 127 named subpatterns)
3--FILE--
4<?php
5
6$regex = '@';
7for($bar=0; $bar<129; $bar++) {
8 $regex .= '((?P<x'.$bar.'>))';
9}
10
11$regex .= 'fo+bar@';
12
13var_dump(preg_match($regex, 'foobar'));
14echo "Done!\n";
15
16?>
17--EXPECT--
18int(1)
19Done!
20