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