dis-bench / src /php /php-src /ext /pcre /tests /bug47662.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
268 Bytes
--TEST--
Bug #47662 (support more than 127 named subpatterns)
--FILE--
<?php
$regex = '@';
for($bar=0; $bar<129; $bar++) {
$regex .= '((?P<x'.$bar.'>))';
}
$regex .= 'fo+bar@';
var_dump(preg_match($regex, 'foobar'));
echo "Done!\n";
?>
--EXPECT--
int(1)
Done!