diff options
author | Marcus Boerger <helly@php.net> | 2003-03-30 14:38:48 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2003-03-30 14:38:48 +0000 |
commit | d94c98c3f2b71fbd632ca2792f6cf3b981a9d83a (patch) | |
tree | f2d8f316414651ab49d26d48b736c59974ed17f4 /run-tests.php | |
parent | f7150d28ff0d8de545753c832effb85c258d1a9f (diff) | |
download | php-git-d94c98c3f2b71fbd632ca2792f6cf3b981a9d83a.tar.gz |
if TEST_PHP_EXECUTABLE=auto then use ./sapi/cli/php
Diffstat (limited to 'run-tests.php')
-rwxr-xr-x | run-tests.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/run-tests.php b/run-tests.php index ba49ca83b1..56345c916f 100755 --- a/run-tests.php +++ b/run-tests.php @@ -112,7 +112,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!"); } |