]> granicus.if.org Git - php/commitdiff
use getenv() instead of the _ENV var
authorNuno Lopes <nlopess@php.net>
Tue, 30 Jan 2007 17:41:11 +0000 (17:41 +0000)
committerNuno Lopes <nlopess@php.net>
Tue, 30 Jan 2007 17:41:11 +0000 (17:41 +0000)
run-tests.php

index cc0cd63d818179aa72aa8c39ebf44f9606e4a1bf..4e0d9e63af1684dcc61680e3c519e4ee615a7c91 100755 (executable)
@@ -704,8 +704,8 @@ if ($just_save_results || !getenv('NO_INTERACTION')) {
 
                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');
                        }