dmitry          Wed May 24 13:29:19 2006 UTC

  Modified files:              
    /php-src    run-tests.php 
  Log:
  Fixed CGI tests
  
  
http://cvs.php.net/viewcvs.cgi/php-src/run-tests.php?r1=1.288&r2=1.289&diff_format=u
Index: php-src/run-tests.php
diff -u php-src/run-tests.php:1.288 php-src/run-tests.php:1.289
--- php-src/run-tests.php:1.288 Tue May 16 23:04:52 2006
+++ php-src/run-tests.php       Wed May 24 13:29:19 2006
@@ -23,7 +23,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: run-tests.php,v 1.288 2006/05/16 23:04:52 helly Exp $ */
+/* $Id: run-tests.php,v 1.289 2006/05/24 13:29:19 dmitry Exp $ */
 
 /* Sanity check to ensure that pcre extension needed by this script is 
available.
  * In the event it is not, print a nice error message indicating that this 
script will
@@ -399,7 +399,7 @@
                                        $html_output = is_resource($html_file);
                                        break;
                                case '--version':
-                                       echo '$Revision: 1.288 $'."\n";
+                                       echo '$Revision: 1.289 $'."\n";
                                        exit(1);
                                default:
                                        echo "Illegal switch specified!\n";
@@ -1436,7 +1436,7 @@
        /* 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) {

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to