summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorGreg Beaver <cellog@php.net>2008-01-05 21:39:39 +0000
committerGreg Beaver <cellog@php.net>2008-01-05 21:39:39 +0000
commitb61e2d4703edb7022445975da214f133d52e2759 (patch)
treea67a0c934b21825d79918e390a794a2cbcfb2fe8 /run-tests.php
parent0e5371eea753acbf9ca0220af2e9dc32e51b5bfa (diff)
downloadphp-git-b61e2d4703edb7022445975da214f133d52e2759.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 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;
}
}