From db2452bb4262a00106fe5610950312209d046d84 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 24 May 2006 13:29:19 +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 28c7d39148..b616fd484f 100755 --- a/run-tests.php +++ b/run-tests.php @@ -1436,7 +1436,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