summaryrefslogtreecommitdiff
path: root/ext/pcre/tests/bug47662.phpt
blob: d6056746cb14373244532ee11208156e4b05ebec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Bug #47662 (support more than 127 named subpatterns)
--FILE--
<?php

$regex = '@';
for($bar=0; $bar<1027; $bar++) {
	$regex .= '((?P<x'.$bar.'>))';
}
$regex .= 'fo+bar@';

var_dump(preg_match($regex, 'foobar'));
echo "Done!\n";

?>
--EXPECT--
int(1)
Done!