From: Jani Taskinen Date: Wed, 23 Jul 2008 13:43:05 +0000 (+0000) Subject: MFH: some fixes to allow certain tests to pass regardless of system php.ini settins X-Git-Tag: php-5.2.7RC1~178 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4fafb9bddcbcdfb6ce419da48e07efa8a6c487ba;p=php MFH: some fixes to allow certain tests to pass regardless of system php.ini settins --- 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