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