Project

General

Profile

Bug #19525 ยป php52.diff

Administrator Admin, 2008-10-29 20:50

View differences:

t3lib/class.t3lib_div.php (working copy)
)
);
$content = @file_get_contents($url, false, $ctx);
if ($content === false && isset($report)) {
// TODO: Remove this once PHP 5.1 support is dropped completely
if (function_exists('error_get_last')) {
$phpError = error_get_last();
$report['error'] = $phpError['type'];
$report['message'] = $phpError['message'];
} else {
$report['error'] = -1;
$report['message'] = 'Couldn\'t get URL.';
}
if ($content === false && isset($report)) {
$phpError = error_get_last();
$report['error'] = $phpError['type'];
$report['message'] = $phpError['message'];
}
} else {
if (isset($report)) {
typo3/init.php (working copy)
// *******************************
// Checking PHP version
// *******************************
if (version_compare(phpversion(), '5.1', '<')) die ('TYPO3 requires PHP 5.1.0 or higher.');
if (version_compare(phpversion(), '5.2', '<')) die ('TYPO3 requires PHP 5.2.0 or higher.');
// *******************************
typo3/sysext/cms/tslib/index_ts.php (working copy)
// *******************************
// Checking PHP version
// *******************************
if (version_compare(phpversion(), '5.1', '<')) die ('TYPO3 requires PHP 5.1.0 or higher.');
if (version_compare(phpversion(), '5.2', '<')) die ('TYPO3 requires PHP 5.2.0 or higher.');
// *******************************
// Set error reporting
    (1-1/1)