From: Stig Bakken Date: Thu, 9 May 2002 06:39:05 +0000 (+0000) Subject: * try the installed cli binary if everything else fails (I'm starting X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~184 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fdb724bffcc5a6e84e6499c1f7014aa5e1f33bee;p=php * try the installed cli binary if everything else fails (I'm starting to agree that looking too hard for a php binary is wrong) --- 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: + */ ?>