]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove default values 32278/head
authorGit'Fellow <carlos@reendex.com>
Thu, 5 May 2022 11:46:09 +0000 (13:46 +0200)
committerGitHub <noreply@github.com>
Thu, 5 May 2022 11:46:09 +0000 (13:46 +0200)
These values are already the default on supported PHP versions.
I suggest to remove these calls.

lib/base.php

index 21889272dd7d8c72f637b25fa198279445c2a4cc..8cf5360b084c29b0d4c41253190f5350e44cf448 100644 (file)
@@ -141,7 +141,7 @@ class OC {
        public static function initPaths() {
                if (defined('PHPUNIT_CONFIG_DIR')) {
                        self::$configDir = OC::$SERVERROOT . '/' . PHPUNIT_CONFIG_DIR . '/';
-               } elseif (defined('PHPUNIT_RUN') and PHPUNIT_RUN and is_dir(OC::$SERVERROOT . '/tests/config/')) {
+               } elseif (defined('PHPUNIT_RUN') && PHPUNIT_RUN && is_dir(OC::$SERVERROOT . '/tests/config/')) {
                        self::$configDir = OC::$SERVERROOT . '/tests/config/';
                } elseif ($dir = getenv('NEXTCLOUD_CONFIG_DIR')) {
                        self::$configDir = rtrim($dir, '/') . '/';
@@ -462,14 +462,6 @@ class OC {
                return \OC::$server->getConfig()->getSystemValue('session_lifetime', 60 * 60 * 24);
        }
 
-       /**
-        * Try to set some values to the required Nextcloud default
-        */
-       public static function setRequiredIniValues() {
-               @ini_set('default_charset', 'UTF-8');
-               @ini_set('gd.jpeg_ignore_warning', '1');
-       }
-
        /**
         * Send the same site cookies
         */
@@ -634,7 +626,6 @@ class OC {
                @ini_set('max_execution_time', '3600');
                @ini_set('max_input_time', '3600');
 
-               self::setRequiredIniValues();
                self::handleAuthHeaders();
                $systemConfig = \OC::$server->get(\OC\SystemConfig::class);
                self::registerAutoloaderCache($systemConfig);