From: Greg Beaver Date: Sat, 5 Jan 2008 21:39:39 +0000 (+0000) Subject: remove potential preg warnings if --EXPECTHEADERS-- is combined with --EXPECTF--... X-Git-Tag: RELEASE_2_0_0a1~1017 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b61e2d4703edb7022445975da214f133d52e2759;p=php remove potential preg warnings if --EXPECTHEADERS-- is combined with --EXPECTF-- or --EXPECTRE-- --- diff --git a/run-tests.php b/run-tests.php index fc7992eec1..218e33276b 100755 --- a/run-tests.php +++ b/run-tests.php @@ -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; } }