nlopess         Tue Jan 30 17:41:11 2007 UTC

  Modified files:              
    /php-src    run-tests.php 
  Log:
  use getenv() instead of the _ENV var
  
http://cvs.php.net/viewvc.cgi/php-src/run-tests.php?r1=1.313&r2=1.314&diff_format=u
Index: php-src/run-tests.php
diff -u php-src/run-tests.php:1.313 php-src/run-tests.php:1.314
--- php-src/run-tests.php:1.313 Mon Jan 29 22:55:22 2007
+++ php-src/run-tests.php       Tue Jan 30 17:41:11 2007
@@ -23,7 +23,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: run-tests.php,v 1.313 2007/01/29 22:55:22 nlopess Exp $ */
+/* $Id: run-tests.php,v 1.314 2007/01/30 17:41:11 nlopess 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
@@ -401,7 +401,7 @@
                                        $html_output = is_resource($html_file);
                                        break;
                                case '--version':
-                                       echo '$Revision: 1.313 $'."\n";
+                                       echo '$Revision: 1.314 $'."\n";
                                        exit(1);
                                default:
                                        echo "Illegal switch specified!\n";
@@ -704,8 +704,8 @@
 
                if (substr(PHP_OS, 0, 3) != "WIN") {
                        /* If PHP_AUTOCONF is set, use it; otherwise, use 
'autoconf'. */
-                       if (!empty($_ENV['PHP_AUTOCONF'])) {
-                               $autoconf = shell_exec($_ENV['PHP_AUTOCONF'] . 
' --version');
+                       if (getenv('PHP_AUTOCONF')) {
+                               $autoconf = shell_exec(getenv('PHP_AUTOCONF') . 
' --version');
                        } else {
                                $autoconf = shell_exec('autoconf --version');
                        }

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

Reply via email to