- release 0.10.0
[m6w6/ext-http] / tests / run-tests.diff
index 90b03aedf49d4651fef3ff1406c5f7fd168ebaf4..9295b87fb1de22d4112768b9b12337d017af8399 100644 (file)
@@ -1,24 +1,24 @@
 Index: run-tests.php
 ===================================================================
 RCS file: /repository/php-src/run-tests.php,v
 Index: run-tests.php
 ===================================================================
 RCS file: /repository/php-src/run-tests.php,v
-retrieving revision 1.209
-diff -u -r1.209 run-tests.php
---- run-tests.php      20 Mar 2005 19:47:13 -0000      1.209
-+++ run-tests.php      3 May 2005 06:13:20 -0000
-@@ -836,6 +836,12 @@
+retrieving revision 1.223
+diff -u -r1.223 run-tests.php
+--- run-tests.php      18 Jul 2005 00:19:28 -0000      1.223
++++ run-tests.php      25 Jul 2005 12:28:31 -0000
+@@ -926,6 +926,12 @@
                $query_string = '';
        }
  
                $query_string = '';
        }
  
-+    if (!empty($section_text['ENV'])) {
-+        foreach (explode("\n", $section_text['ENV']) as $env) {
-+            ($env = trim($env)) and putenv($env);
-+        }
-+    }
++      if (!empty($section_text['ENV'])) {
++              foreach (explode("\n", $section_text['ENV']) as $env) {
++                      ($env = trim($env)) and putenv($env);
++              }
++      }
 +
        putenv("REDIRECT_STATUS=1");
        putenv("QUERY_STRING=$query_string");
        putenv("PATH_TRANSLATED=$tmp_file");
 +
        putenv("REDIRECT_STATUS=1");
        putenv("QUERY_STRING=$query_string");
        putenv("PATH_TRANSLATED=$tmp_file");
-@@ -861,7 +867,7 @@
+@@ -951,7 +957,7 @@
                putenv("CONTENT_TYPE=");
                putenv("CONTENT_LENGTH=");
  
                putenv("CONTENT_TYPE=");
                putenv("CONTENT_LENGTH=");
  
@@ -27,15 +27,16 @@ diff -u -r1.209 run-tests.php
        }
  
        if ($DETAILED) echo "
        }
  
        if ($DETAILED) echo "
-@@ -878,6 +884,12 @@
+@@ -968,6 +974,13 @@
  //    $out = `$cmd`;
        $out = system_with_timeout($cmd);
  
  //    $out = `$cmd`;
        $out = system_with_timeout($cmd);
  
-+    if (!empty($section_text['ENV'])) {
-+        foreach (explode("\n", $section_text['ENV']) as $env) {
-+            ($env = trim($env)) and putenv(array_shift(explode('=', $env)).'=');
-+        }
-+    }
++      if (!empty($section_text['ENV'])) {
++              foreach (explode("\n", $section_text['ENV']) as $env) {
++                      $env = explode('=', $env);
++                      ($env = trim($env)) and putenv($env[0] .'=');
++              }
++      }
 +
        @unlink($tmp_post);
  
 +
        @unlink($tmp_post);