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