]> granicus.if.org Git - php/commitdiff
MFH 'auto'
authorMarcus Boerger <helly@php.net>
Wed, 2 Apr 2003 08:34:56 +0000 (08:34 +0000)
committerMarcus Boerger <helly@php.net>
Wed, 2 Apr 2003 08:34:56 +0000 (08:34 +0000)
run-tests.php

index a4c4d2c82e2cc9661edd2882d10026cdc7845776..dbf85d950d7f445053795112fbc95a07c8b6cd58 100755 (executable)
@@ -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!");
 }