summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorStig Bakken <ssb@php.net>2002-05-09 06:39:05 +0000
committerStig Bakken <ssb@php.net>2002-05-09 06:39:05 +0000
commitfdb724bffcc5a6e84e6499c1f7014aa5e1f33bee (patch)
tree5743a84726c80e658141240fdd4e775792a9d4cd /run-tests.php
parent2225be36d6821594f7f877995d705bf1c919b310 (diff)
downloadphp-git-fdb724bffcc5a6e84e6499c1f7014aa5e1f33bee.tar.gz
* try the installed cli binary if everything else fails (I'm starting
to agree that looking too hard for a php binary is wrong)
Diffstat (limited to 'run-tests.php')
-rwxr-xr-xrun-tests.php9
1 files changed, 9 insertions, 0 deletions
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:
+ */
?>