]> granicus.if.org Git - php/commitdiff
MFH: some fixes to allow certain tests to pass regardless of system php.ini settins
authorJani Taskinen <jani@php.net>
Wed, 23 Jul 2008 13:43:05 +0000 (13:43 +0000)
committerJani Taskinen <jani@php.net>
Wed, 23 Jul 2008 13:43:05 +0000 (13:43 +0000)
run-tests.php

index 82f2fb2475cc330f68b9a5746dd1f3b208ef338e..88d73ce583c024aec08c56cd4b1ffc83a53b3081 100755 (executable)
@@ -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