From fdb724bffcc5a6e84e6499c1f7014aa5e1f33bee Mon Sep 17 00:00:00 2001 From: Stig Bakken Date: Thu, 9 May 2002 06:39:05 +0000 Subject: [PATCH] * try the installed cli binary if everything else fails (I'm starting to agree that looking too hard for a php binary is wrong) --- run-tests.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/run-tests.php b/run-tests.php index 2496ea6c72..d5bf760f21 100755 --- a/run-tests.php +++ b/run-tests.php @@ -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: + */ ?> -- 2.50.1