diff options
author | Greg Beaver <cellog@php.net> | 2008-01-05 21:39:53 +0000 |
---|---|---|
committer | Greg Beaver <cellog@php.net> | 2008-01-05 21:39:53 +0000 |
commit | 27ee8f8806b1c7ea51acbcc0d302da69ecfc77c7 (patch) | |
tree | eadbb002fadc719bd7797cb85716842a668e698c /run-tests.php | |
parent | f61ba6295aa9445982874a055ff8e9a0f9ecc60b (diff) | |
download | php-git-27ee8f8806b1c7ea51acbcc0d302da69ecfc77c7.tar.gz |
remove potential preg warnings if --EXPECTHEADERS-- is combined with --EXPECTF-- or --EXPECTRE--
Diffstat (limited to 'run-tests.php')
-rwxr-xr-x | run-tests.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/run-tests.php b/run-tests.php index b589de9f21..12905d5b6b 100755 --- a/run-tests.php +++ b/run-tests.php @@ -1600,7 +1600,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; } } |