From 4fafb9bddcbcdfb6ce419da48e07efa8a6c487ba Mon Sep 17 00:00:00 2001 From: Jani Taskinen Date: Wed, 23 Jul 2008 13:43:05 +0000 Subject: [PATCH] MFH: some fixes to allow certain tests to pass regardless of system php.ini settins --- run-tests.php | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.50.1