[!!!][TASK] Remove deprecated PhpOptionsUtility functions 43/32943/2
authorWouter Wolters <typo3@wouterwolters.nl>
Tue, 23 Sep 2014 17:45:30 +0000 (19:45 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Tue, 23 Sep 2014 18:03:38 +0000 (20:03 +0200)
Resolves: #61820
Releases: master
Change-Id: Ib5057059f0d0da56c419b931341baae2fec891f2
Reviewed-on: http://review.typo3.org/32943
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/core/Classes/Utility/PhpOptionsUtility.php
typo3/sysext/core/Documentation/Changelog/master/Breaking-61820-PhpOptionsUtilityDeprecatedFunctionsRemoved.rst [new file with mode: 0644]

index c29446b..310c032 100644 (file)
@@ -13,6 +13,7 @@ namespace TYPO3\CMS\Core\Utility;
  *
  * The TYPO3 project - inspiring people to share!
  */
+
 /**
  * Class to handle php environment specific options / functions
  *
@@ -21,34 +22,6 @@ namespace TYPO3\CMS\Core\Utility;
 class PhpOptionsUtility {
 
        /**
-        * Check if php safe_mode is enabled
-        *
-        * @return boolean TRUE if safe_mode is enabled, FALSE if disabled
-        * @deprecated since 6.1, will be removed two versions later
-        */
-       static public function isSafeModeEnabled() {
-               GeneralUtility::logDeprecatedFunction();
-               if (version_compare(phpversion(), '5.4', '<')) {
-                       return self::getIniValueBoolean('safe_mode');
-               }
-               return FALSE;
-       }
-
-       /**
-        * Check if php magic_quotes_gpc is enabled
-        *
-        * @return boolean TRUE if magic_quotes_gpc is enabled, FALSE if disabled
-        * @deprecated since 6.1, will be removed two versions later
-        */
-       static public function isMagicQuotesGpcEnabled() {
-               GeneralUtility::logDeprecatedFunction();
-               if (version_compare(phpversion(), '5.4', '<')) {
-                       return self::getIniValueBoolean('magic_quotes_gpc');
-               }
-               return FALSE;
-       }
-
-       /**
         * Check if php sql.safe_mode is enabled
         *
         * @return boolean TRUE if sql.safe_mode is enabled, FALSE if disabled
diff --git a/typo3/sysext/core/Documentation/Changelog/master/Breaking-61820-PhpOptionsUtilityDeprecatedFunctionsRemoved.rst b/typo3/sysext/core/Documentation/Changelog/master/Breaking-61820-PhpOptionsUtilityDeprecatedFunctionsRemoved.rst
new file mode 100644 (file)
index 0000000..80edf60
--- /dev/null
@@ -0,0 +1,26 @@
+=================================================================
+Breaking: #61820 - deprecated PhpOptionsUtility functions removed
+=================================================================
+
+Description
+===========
+
+The \TYPO3\CMS\Core\Utility\PhpOptionsUtility functions isSafeModeEnabled and isMagicQuotesGpcEnabled are removed.
+
+Impact
+======
+
+Extensions that still use one of the removed funtions won't work.
+
+
+Affected installations
+======================
+
+A TYPO3 instance is affected if a 3rd party extension uses one of the removed functions.
+
+
+Migration
+=========
+
+Remove the call to \TYPO3\CMS\Core\Utility\PhpOptionsUtility::isSafeModeEnabled or \TYPO3\CMS\Core\Utility\PhpOptionsUtility::isMagicQuotesGpcEnabled functions.
+The Install Tool takes care of the removed checks now.
\ No newline at end of file