]> granicus.if.org Git - php/commitdiff
if TEST_PHP_EXECUTABLE=auto then use ./sapi/cli/php
authorMarcus Boerger <helly@php.net>
Sun, 30 Mar 2003 14:38:48 +0000 (14:38 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 30 Mar 2003 14:38:48 +0000 (14:38 +0000)
run-tests.php

index ba49ca83b13329e1adf95cee470137b1789b4bca..56345c916fb69b8a5ede70fe21125f2cf27a411a 100755 (executable)
@@ -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!");
 }