diff options
| author | Greg Beaver <cellog@php.net> | 2008-01-05 21:39:47 +0000 |
|---|---|---|
| committer | Greg Beaver <cellog@php.net> | 2008-01-05 21:39:47 +0000 |
| commit | 4490673e0e3884374a12735f53785c96b81f20d5 (patch) | |
| tree | fdd9e02449c528ec817fb6342492ebc639750f6e | |
| parent | 32f4ff69b574a33fece08f8fc904be8e904cd3c1 (diff) | |
| download | php-git-4490673e0e3884374a12735f53785c96b81f20d5.tar.gz | |
remove potential preg warnings if --EXPECTHEADERS-- is combined with --EXPECTF-- or --EXPECTRE--
| -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 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; } } |
