From: Dmitry Stogov Date: Wed, 24 May 2006 13:29:19 +0000 (+0000) Subject: Fixed CGI tests X-Git-Tag: BEFORE_NEW_OUTPUT_API~102 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=db2452bb4262a00106fe5610950312209d046d84;p=php Fixed CGI tests --- 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) {