1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 01:32:22 +01:00

MFH: some fixes to allow certain tests to pass regardless of system php.ini settins

This commit is contained in:
Jani Taskinen
2008-07-23 13:43:05 +00:00
parent 99487f9ce3
commit 4fafb9bddc

View File

@@ -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