]> granicus.if.org Git - php/commitdiff
Fixed CGI tests
authorDmitry Stogov <dmitry@php.net>
Wed, 24 May 2006 13:29:19 +0000 (13:29 +0000)
committerDmitry Stogov <dmitry@php.net>
Wed, 24 May 2006 13:29:19 +0000 (13:29 +0000)
run-tests.php

index 28c7d3914887d7f1ae9212832cb976cf2b0afcc2..b616fd484fe003a82604e6b0326ecf6521be602f 100755 (executable)
@@ -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) {