]> granicus.if.org Git - php/commitdiff
remove potential preg warnings if --EXPECTHEADERS-- is combined with --EXPECTF--...
authorGreg Beaver <cellog@php.net>
Sat, 5 Jan 2008 21:39:39 +0000 (21:39 +0000)
committerGreg Beaver <cellog@php.net>
Sat, 5 Jan 2008 21:39:39 +0000 (21:39 +0000)
run-tests.php

index fc7992eec16408d23ba3b88c6474dc795229b0da..218e33276b63bdf19df5835aa202f03a25904ada 100755 (executable)
@@ -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;
                }
        }