From a953a1abda632d410bdcc31aece6708b5e0598a1 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 24 May 2006 13:28:59 +0000 Subject: [PATCH] Fixed CGI tests. --- run-tests.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-tests.php b/run-tests.php index 3b2d2796cc..94b9a032fd 100755 --- a/run-tests.php +++ b/run-tests.php @@ -1384,7 +1384,7 @@ COMMAND $cmd /* when using CGI, strip the headers from the output */ $headers = ""; if (isset($old_php) && preg_match("/^(.*?)\r?\n\r?\n(.*)/s", $out, $match)) { - $output = $match[2]; + $output = trim($match[2]); $rh = preg_split("/[\n\r]+/",$match[1]); $headers = array(); foreach ($rh as $line) { -- 2.50.1