2 ===================================================================
3 RCS file: /repository/php-src/run-tests.php,v
4 retrieving revision 1.223
5 diff -u -r1.223 run-tests.php
6 --- run-tests.php 18 Jul 2005 00:19:28 -0000 1.223
7 +++ run-tests.php 25 Jul 2005 12:28:31 -0000
12 + if (!empty($section_text['ENV'])) {
13 + foreach (explode("\n", $section_text['ENV']) as $env) {
14 + ($env = trim($env)) and putenv($env);
18 putenv("REDIRECT_STATUS=1");
19 putenv("QUERY_STRING=$query_string");
20 putenv("PATH_TRANSLATED=$tmp_file");
22 putenv("CONTENT_TYPE=");
23 putenv("CONTENT_LENGTH=");
25 - $cmd = "$php$pass_options$ini_settings -f \"$tmp_file\" $args 2>&1";
26 + $cmd = "$php$pass_options$ini_settings < \"$tmp_file\" $args 2>&1";
32 $out = system_with_timeout($cmd);
34 + if (!empty($section_text['ENV'])) {
35 + foreach (explode("\n", $section_text['ENV']) as $env) {
36 + $env = explode('=', $env);
37 + ($env = trim($env)) and putenv($env[0] .'=');
43 // Does the output match what is expected?