1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 17:22:15 +01:00

use getenv() instead of the _ENV var

This commit is contained in:
Nuno Lopes
2007-01-30 17:41:11 +00:00
parent fdec496b73
commit 72ea46a292

View File

@@ -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');
}