summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorGreg Beaver <cellog@php.net>2008-01-05 21:39:53 +0000
committerGreg Beaver <cellog@php.net>2008-01-05 21:39:53 +0000
commit27ee8f8806b1c7ea51acbcc0d302da69ecfc77c7 (patch)
treeeadbb002fadc719bd7797cb85716842a668e698c /run-tests.php
parentf61ba6295aa9445982874a055ff8e9a0f9ecc60b (diff)
downloadphp-git-27ee8f8806b1c7ea51acbcc0d302da69ecfc77c7.tar.gz
remove potential preg warnings if --EXPECTHEADERS-- is combined with --EXPECTF-- or --EXPECTRE--
Diffstat (limited to 'run-tests.php')
-rwxr-xr-xrun-tests.php2
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;
}
}