cvs: php-src(PHP_5_2) / run-tests.php
| From: | Antony Dovgal | Date: | Mon, 07 Aug 2006 21:27:41 +0000 |
| Subject: | cvs: php-src(PHP_5_2) / run-tests.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-39814@lists.php.net to get a copy of this message | ||
tony2001 Mon Aug 7 21:27:41 2006 UTC
Modified files: (Branch: PHP_5_2)
/php-src run-tests.php
Log:
suppress errors from date() if no date.timezone set
don't try to look for libtool if $sys_libtool_path is empty
http://cvs.php.net/viewvc.cgi/php-src/run-tests.php?r1=1.226.2.37.2.9&r2=1.226.2.37.2.10&diff_format=u
Index: php-src/run-tests.php
diff -u php-src/run-tests.php:1.226.2.37.2.9 php-src/run-tests.php:1.226.2.37.2.10
--- php-src/run-tests.php:1.226.2.37.2.9 Fri Jul 28 12:58:59 2006
+++ php-src/run-tests.php Mon Aug 7 21:27:40 2006
@@ -23,7 +23,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: run-tests.php,v 1.226.2.37.2.9 2006/07/28 12:58:59 tony2001 Exp $ */
+/* $Id: run-tests.php,v 1.226.2.37.2.10 2006/08/07 21:27:40 tony2001 Exp $ */
/* Sanity check to ensure that pcre extension needed by this script is available.
* In the event it is not, print a nice error message indicating that this script will
@@ -239,7 +239,7 @@
$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';
}
@@ -397,7 +397,7 @@
$html_output = is_resource($html_file);
break;
case '--version':
- echo '$Revision: 1.226.2.37.2.9 $'."\n";
+ echo '$Revision: 1.226.2.37.2.10 $'."\n";
exit(1);
default:
echo "Illegal switch '$switch' specified!\n";
@@ -710,7 +710,9 @@
/* 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 @@
if ($html_output)
{
- fwrite($html_file, "<h2>Time Start: " . date('Y-m-d H:i:s',
$start_time) . "</h2>\n");
+ fwrite($html_file, "<h2>Time Start: " . @date('Y-m-d H:i:s',
$start_time) . "</h2>\n");
fwrite($html_file, "<table>\n");
}
- echo "TIME START " . date('Y-m-d H:i:s', $start_time) .
"\n=====================================================================\n";
+ echo "TIME START " . @date('Y-m-d H:i:s', $start_time) .
"\n=====================================================================\n";
}
function show_end($end_time)
@@ -1815,9 +1817,9 @@
if ($html_output)
{
fwrite($html_file, "</table>\n");
- fwrite($html_file, "<h2>Time End: " . date('Y-m-d H:i:s', $end_time) .
"</h2>\n");
+ fwrite($html_file, "<h2>Time End: " . @date('Y-m-d H:i:s', $end_time) .
"</h2>\n");
}
- echo "=====================================================================\nTIME END "
. date('Y-m-d H:i:s', $end_time) . "\n";
+ echo "=====================================================================\nTIME END "
. @date('Y-m-d H:i:s', $end_time) . "\n";
}
function show_summary()