mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
315c0536c2
We have to multiply with 0x100 to properly scale the high byte.
18 lines
329 B
PHP
18 lines
329 B
PHP
--TEST--
|
|
Bug #72688 (preg_match missing group names in matches)
|
|
--FILE--
|
|
<?php
|
|
|
|
$pattern = [];
|
|
for ($i = 0; $i < 300; $i++) {
|
|
$pattern[] = "(?'group{$i}'{$i}$)";
|
|
}
|
|
$fullPattern = '/' . implode('|', $pattern) . '/uix';
|
|
|
|
preg_match($fullPattern, '290', $matches);
|
|
|
|
var_dump($matches['group290']);
|
|
?>
|
|
--EXPECT--
|
|
string(3) "290"
|