]> 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:47 +0000 (21:39 +0000)
committerGreg Beaver <cellog@php.net>
Sat, 5 Jan 2008 21:39:47 +0000 (21:39 +0000)
run-tests.php

index a431e9494d0c6928b29612d584b9ed8c8c1be86f..2785294855b70b2cb3671b230b9e50460d09e348 100755 (executable)
@@ -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;
                }
        }