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

index 3b2d2796ccd0855b5acbbe0edb9ef8e67ce7628e..94b9a032fded700d09c18e6954d41e8bf804f1a1 100755 (executable)
@@ -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) {