derick          Tue Oct  8 04:39:10 2002 EDT

  Modified files:              
    /php4       run-tests.php 
  Log:
  - Use getenv, as $_ENV is not available when variables_order= in php.ini
    does not include "E".
  
  
Index: php4/run-tests.php
diff -u php4/run-tests.php:1.64 php4/run-tests.php:1.65
--- php4/run-tests.php:1.64     Tue Oct  8 03:49:35 2002
+++ php4/run-tests.php  Tue Oct  8 04:39:10 2002
@@ -63,14 +63,14 @@
 // Require the explicit specification.
 // Otherwise we could end up testing the wrong file!
 
-if (isset($_ENV['TEST_PHP_EXECUTABLE'])) {
-       $php = $_ENV['TEST_PHP_EXECUTABLE'];
+if (getenv('TEST_PHP_EXECUTABLE')) {
+       $php = getenv('TEST_PHP_EXECUTABLE');
 } else {
        error("environment variable TEST_PHP_EXECUTABLE must be set to specify PHP 
executable!");
 }
 
-if (isset($_ENV['TEST_PHP_LOG_FORMAT'])) {
-       $log_format = strtoupper($_ENV['TEST_PHP_LOG_FORMAT']);
+if (getenv('TEST_PHP_LOG_FORMAT')) {
+       $log_format = strtoupper(getenv('TEST_PHP_LOG_FORMAT'));
 } else {
        $log_format = 'LEOD';
 }
@@ -81,8 +81,8 @@
 
 // Check whether a detailed log is wanted.
 
-if (isset($_ENV['TEST_PHP_DETAILED'])) {
-       define('DETAILED', $_ENV['TEST_PHP_DETAILED']);
+if (getenv('TEST_PHP_DETAILED')) {
+       define('DETAILED', getenv('TEST_PHP_DETAILED'));
 } else {
        define('DETAILED', 0);
 }



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

Reply via email to