jani Wed Jul 23 13:43:05 2008 UTC
Modified files: (Branch: PHP_5_2)
/php-src run-tests.php
Log:
MFH: some fixes to allow certain tests to pass regardless of system php.ini
settins
http://cvs.php.net/viewvc.cgi/php-src/run-tests.php?r1=1.226.2.37.2.45&r2=1.226.2.37.2.46&diff_format=u
Index: php-src/run-tests.php
diff -u php-src/run-tests.php:1.226.2.37.2.45
php-src/run-tests.php:1.226.2.37.2.46
--- php-src/run-tests.php:1.226.2.37.2.45 Thu Mar 13 13:51:40 2008
+++ php-src/run-tests.php Wed Jul 23 13:43:05 2008
@@ -24,7 +24,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: run-tests.php,v 1.226.2.37.2.45 2008/03/13 13:51:40 felipe Exp $ */
+/* $Id: run-tests.php,v 1.226.2.37.2.46 2008/07/23 13:43:05 jani 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
@@ -58,6 +58,11 @@
exit;
}
+// If timezone is not set, use UTC.
+if (ini_get('date.timezone') == '') {
+ date_default_timezone_set('UTC');
+}
+
// store current directory
$CUR_DIR = getcwd();
@@ -76,6 +81,8 @@
$cwd = getcwd();
set_time_limit(0);
+ini_set('pcre.backtrack_limit', PHP_INT_MAX);
+
$valgrind_version = 0;
// delete as much output buffers as possible
@@ -421,7 +428,7 @@
$html_output = is_resource($html_file);
break;
case '--version':
- echo '$Revision: 1.226.2.37.2.45
$'."\n";
+ echo '$Revision: 1.226.2.37.2.46
$'."\n";
exit(1);
case 'u':
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php