summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJani Taskinen <jani@php.net>2008-07-23 13:43:05 +0000
committerJani Taskinen <jani@php.net>2008-07-23 13:43:05 +0000
commit4fafb9bddcbcdfb6ce419da48e07efa8a6c487ba (patch)
tree82983413e25f23796c20d308cdac27ccc5e5f4c7
parent99487f9ce3d372cf0ecc9235f816402baeed44ca (diff)
downloadphp-git-4fafb9bddcbcdfb6ce419da48e07efa8a6c487ba.tar.gz
MFH: some fixes to allow certain tests to pass regardless of system php.ini settins
-rwxr-xr-xrun-tests.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/run-tests.php b/run-tests.php
index 82f2fb2475..88d73ce583 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -58,6 +58,11 @@ NO_PROC_OPEN_ERROR;
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 @@ putenv('SSH_CONNECTION=deleted');
$cwd = getcwd();
set_time_limit(0);
+ini_set('pcre.backtrack_limit', PHP_INT_MAX);
+
$valgrind_version = 0;
// delete as much output buffers as possible