projects
/
Packages
/
TYPO3.CMS.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
#7533: PHP version checked too late, PHP 4 will break on inclusion of t3lib_div
[Packages/TYPO3.CMS.git]
/
typo3
/
sysext
/
cms
/
tslib
/
index_ts.php
diff --git
a/typo3/sysext/cms/tslib/index_ts.php
b/typo3/sysext/cms/tslib/index_ts.php
index
8d8aff2
..
a2c42a2
100755
(executable)
--- a/
typo3/sysext/cms/tslib/index_ts.php
+++ b/
typo3/sysext/cms/tslib/index_ts.php
@@
-2,7
+2,7
@@
/***************************************************************
* Copyright notice
*
/***************************************************************
* Copyright notice
*
-* (c) 1999-200
7
Kasper Skaarhoj (kasperYYYY@typo3.com)
+* (c) 1999-200
8
Kasper Skaarhoj (kasperYYYY@typo3.com)
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
@@
-38,6
+38,11
@@
* @subpackage tslib
*/
* @subpackage tslib
*/
+// *******************************
+// Checking PHP version
+// *******************************
+if (version_compare(phpversion(), '5.1', '<')) die ('TYPO3 requires PHP 5.1.0 or higher.');
+
// *******************************
// Set error reporting
// *******************************
// *******************************
// Set error reporting
// *******************************
@@
-111,8
+116,6
@@
$TT->pull();
// *******************************
// Checking environment
// *******************************
// *******************************
// Checking environment
// *******************************
-if (t3lib_div::int_from_ver(phpversion())<5001000) die ('TYPO3 requires PHP 5.1.0 or higher.');
-
if (isset($_POST['GLOBALS']) || isset($_GET['GLOBALS'])) die('You cannot set the GLOBALS-array from outside the script.');
if (!get_magic_quotes_gpc()) {
$TT->push('Add slashes to GET/POST arrays','');
if (isset($_POST['GLOBALS']) || isset($_GET['GLOBALS'])) die('You cannot set the GLOBALS-array from outside the script.');
if (!get_magic_quotes_gpc()) {
$TT->push('Add slashes to GET/POST arrays','');