mirror of
https://github.com/php/php-src.git
synced 2025-01-22 11:44:09 +08:00
remove potential preg warnings if --EXPECTHEADERS-- is combined with --EXPECTF-- or --EXPECTRE--
This commit is contained in:
parent
0e5371eea7
commit
b61e2d4703
@ -1667,7 +1667,7 @@ COMMAND $cmd
|
||||
$wanted = $wanted_headers . "\n--HEADERS--\n" . $wanted;
|
||||
$output = $output_headers . "\n--HEADERS--\n" . $output;
|
||||
if (isset($wanted_re)) {
|
||||
$wanted_re = $wanted_headers . "\n--HEADERS--\n" . $wanted_re;
|
||||
$wanted_re = preg_quote($wanted_headers . "\n--HEADERS--\n", '/') . $wanted_re;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user