From: Greg Beaver Date: Sat, 5 Jan 2008 21:39:47 +0000 (+0000) Subject: remove potential preg warnings if --EXPECTHEADERS-- is combined with --EXPECTF--... X-Git-Tag: php-5.2.6RC1~191 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4490673e0e3884374a12735f53785c96b81f20d5;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 a431e9494d..2785294855 100755 --- a/run-tests.php +++ b/run-tests.php @@ -1579,7 +1579,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; } }