summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-03-30 14:38:48 +0000
committerMarcus Boerger <helly@php.net>2003-03-30 14:38:48 +0000
commitd94c98c3f2b71fbd632ca2792f6cf3b981a9d83a (patch)
treef2d8f316414651ab49d26d48b736c59974ed17f4 /run-tests.php
parentf7150d28ff0d8de545753c832effb85c258d1a9f (diff)
downloadphp-git-d94c98c3f2b71fbd632ca2792f6cf3b981a9d83a.tar.gz
if TEST_PHP_EXECUTABLE=auto then use ./sapi/cli/php
Diffstat (limited to 'run-tests.php')
-rwxr-xr-xrun-tests.php6
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!");
}