From: Marcus Boerger Date: Wed, 2 Apr 2003 08:34:56 +0000 (+0000) Subject: MFH 'auto' X-Git-Tag: php-4.3.2RC2~199 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7dab6484260bb31d2c39b5f3845cab9533a71748;p=php MFH 'auto' --- diff --git a/run-tests.php b/run-tests.php index a4c4d2c82e..dbf85d950d 100755 --- a/run-tests.php +++ b/run-tests.php @@ -73,7 +73,11 @@ SAFE_MODE_WARNING; if (getenv('TEST_PHP_EXECUTABLE')) { $php = getenv('TEST_PHP_EXECUTABLE'); -} else { + if ($php=='auto') { + $php = $cwd.'/sapi/cli/php'; + } +} +if (!file_exists($php)) { error("environment variable TEST_PHP_EXECUTABLE must be set to specify PHP executable!"); }