diff --git a/run-tests.php b/run-tests.php index 58591ca7cf5..5722186640b 100755 --- a/run-tests.php +++ b/run-tests.php @@ -239,7 +239,7 @@ $pass_option_n = false; $pass_options = ''; $compression = 0; -$output_file = $CUR_DIR . '/php_test_results_' . date('Ymd_Hi') . '.txt'; +$output_file = $CUR_DIR . '/php_test_results_' . @date('Ymd_Hi') . '.txt'; if ($compression) { $output_file = 'compress.zlib://' . $output_file . '.gz'; } @@ -710,7 +710,9 @@ if ($just_save_results || !getenv('NO_INTERACTION')) { /* Use shtool to find out if there is glibtool present (MacOSX) */ $sys_libtool_path = shell_exec(dirname(__FILE__) . '/build/shtool path glibtool libtool'); - $sys_libtool = shell_exec(str_replace("\n", "", $sys_libtool_path) . ' --version'); + if ($sys_libtool_path) { + $sys_libtool = shell_exec(str_replace("\n", "", $sys_libtool_path) . ' --version'); + } /* Try the most common flags for 'version' */ $flags = array('-v', '-V', '--version'); @@ -1802,10 +1804,10 @@ function show_start($start_time) if ($html_output) { - fwrite($html_file, "