]> granicus.if.org Git - php/commitdiff
* try the installed cli binary if everything else fails (I'm starting
authorStig Bakken <ssb@php.net>
Thu, 9 May 2002 06:39:05 +0000 (06:39 +0000)
committerStig Bakken <ssb@php.net>
Thu, 9 May 2002 06:39:05 +0000 (06:39 +0000)
  to agree that looking too hard for a php binary is wrong)

run-tests.php

index 2496ea6c72e01ad0ba13d817d1846dfab2ab5500..d5bf760f2109196f4142ac80792adc014cdd523c 100755 (executable)
@@ -189,6 +189,8 @@ function initialize()
         $php = $_ENV["TOP_BUILDDIR"]."/sapi/cli/php{$ext}";
     } elseif (@is_executable("./sapi/cli/php{$ext}")) {
         $php = getcwd() . "/sapi/cli/php{$ext}";
+    } elseif (@is_executable(PHP_BINDIR . "/php{$ext}")) {
+        $php = PHP_BINDIR . "/php{$ext}";
     }
 // Test result can be bogus, if we use php binary in path. - yohgaki@php.net
 //     if (empty($php)) {
@@ -629,4 +631,11 @@ function run_test($file)
        return $status;
 }
 
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * indent-tabs-mode: t
+ * End:
+ */
 ?>