Remove register_globals and magic_quotes_* checks
[lhc/web/wiklou.git] / includes / installer / Installer.php
index 40e51f0..0ef2d47 100644 (file)
@@ -116,9 +116,7 @@ abstract class Installer {
         */
        protected $envChecks = array(
                'envCheckDB',
-               'envCheckRegisterGlobals',
                'envCheckBrokenXML',
-               'envCheckMagicQuotes',
                'envCheckMbstring',
                'envCheckSafeMode',
                'envCheckXML',
@@ -736,20 +734,6 @@ abstract class Installer {
                return true;
        }
 
-       /**
-        * Environment check for register_globals.
-        * Prevent installation if enabled
-        * @return bool
-        */
-       protected function envCheckRegisterGlobals() {
-               if ( wfIniGetBool( 'register_globals' ) ) {
-                       $this->showMessage( 'config-register-globals-error' );
-                       return false;
-               }
-
-               return true;
-       }
-
        /**
         * Some versions of libxml+PHP break < and > encoding horribly
         * @return bool
@@ -765,22 +749,6 @@ abstract class Installer {
                return true;
        }
 
-       /**
-        * Environment check for magic_quotes_(gpc|runtime|sybase).
-        * @return bool
-        */
-       protected function envCheckMagicQuotes() {
-               $status = true;
-               foreach ( array( 'gpc', 'runtime', 'sybase' ) as $magicJunk ) {
-                       if ( wfIniGetBool( "magic_quotes_$magicJunk" ) ) {
-                               $this->showError( "config-magic-quotes-$magicJunk" );
-                               $status = false;
-                       }
-               }
-
-               return $status;
-       }
-
        /**
         * Environment check for mbstring.func_overload.
         * @return bool