MFB52: sync

This commit is contained in:
Jani Taskinen 2009-04-25 17:12:56 +00:00
parent f430db2814
commit 43670e41bb

View File

@ -71,14 +71,15 @@ if (!defined("PHP_VERSION_ID")) {
define("PHP_MAJOR_VERSION", $major);
}
// __DIR__ and FILE_BINARY is available from 5.3.0
// __DIR__ is available from 5.3.0
if (PHP_VERSION_ID < 50300) {
define('__DIR__', realpath(dirname(__FILE__)));
define('FILE_BINARY', 0);
// FILE_BINARY is available from 5.2.7
if (PHP_VERSION_ID < 50207) {
define('FILE_BINARY', 0);
}
}
// If timezone is not set, use UTC.
if (ini_get('date.timezone') == '') {
date_default_timezone_set('UTC');