Browse Source

use getenv() instead of the _ENV var

migration/RELEASE_1_0_0
Nuno Lopes 20 years ago
parent
commit
72ea46a292
  1. 4
      run-tests.php

4
run-tests.php

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

Loading…
Cancel
Save