]> granicus.if.org Git - php/commitdiff
Do not search php binary in search path, since we are not testing older builds.
authorYasuo Ohgaki <yohgaki@php.net>
Tue, 12 Mar 2002 05:33:03 +0000 (05:33 +0000)
committerYasuo Ohgaki <yohgaki@php.net>
Tue, 12 Mar 2002 05:33:03 +0000 (05:33 +0000)
Print SAPI used.

run-tests.php

index ff8626fa75558d6269d5d8461137d01a2fe6b531..79e0f5b249ef2509a3b83f61624d4a676c632e3e 100755 (executable)
@@ -170,9 +170,10 @@ function initialize()
     } elseif (@is_executable("./sapi/cli/php{$ext}")) {
         $php = getcwd() . "/sapi/cli/php{$ext}";
     }
-    if (empty($php)) {
-        $php = in_path("php", $windows_p);
-    }
+// Test result can be bogus, if we use php binary in path. - yohgaki@php.net
+//     if (empty($php)) {
+//         $php = in_path("php", $windows_p);
+//     }
     if (empty($php)) {
         dowriteln("Unable to find PHP executable (php{$ext}).");
         dowriteln("Please build PHP as a CGI executable or make sure it is");
@@ -283,7 +284,8 @@ function do_testing($argc, &$argv)
     dowriteln(sprintf("Tests passed:     %4d (%s%%)", $passed, $passed_pstr));
     dowriteln("=============================");
     dowriteln("Skipped ".sizeof($skipped_extensions)." extensions.");
-    dowriteln("PHP Version: ".phpversion());
+       dowriteln("PHP SAPI: ".PHP_SAPI);
+    dowriteln("PHP Version: ".PHP_VERSION);
 }
 
 function find_testdirs($dir = '.', $first_pass = true)