|
@@ 72-80 (lines=9) @@
|
| 69 |
|
'%4$s' => $currentSetting |
| 70 |
|
]); |
| 71 |
|
} |
| 72 |
|
if (false === ini_set('default_charset', 'UTF-8')) { |
| 73 |
|
$currentSetting = ini_get('default_charset'); |
| 74 |
|
$warnings[] = $this->translator->__f('Could not use %1$s to set the %2$s to the value of %3$s. The install or upgrade process may fail at your current setting of %4$s.', [ |
| 75 |
|
'%1$s' => 'ini_set', |
| 76 |
|
'%2$s' => 'default_charset', |
| 77 |
|
'%3$s' => 'UTF-8', |
| 78 |
|
'%4$s' => $currentSetting |
| 79 |
|
]); |
| 80 |
|
} |
| 81 |
|
if (false === mb_regex_encoding('UTF-8')) { |
| 82 |
|
$currentSetting = mb_regex_encoding(); |
| 83 |
|
$warnings[] = $this->translator->__f('Could not set %1$s to the value of %2$s. The install or upgrade process may fail at your current setting of %3$s.', [ |
|
@@ 89-97 (lines=9) @@
|
| 86 |
|
'%3$s' => $currentSetting |
| 87 |
|
]); |
| 88 |
|
} |
| 89 |
|
if (false === ini_set('memory_limit', '128M')) { |
| 90 |
|
$currentSetting = ini_get('memory_limit'); |
| 91 |
|
$warnings[] = $this->translator->__f('Could not use %1$s to set the %2$s to the value of %3$s. The install or upgrade process may fail at your current setting of %4$s.', [ |
| 92 |
|
'%1$s' => 'ini_set', |
| 93 |
|
'%2$s' => 'memory_limit', |
| 94 |
|
'%3$s' => '128M', |
| 95 |
|
'%4$s' => $currentSetting |
| 96 |
|
]); |
| 97 |
|
} |
| 98 |
|
if (false === ini_set('max_execution_time', 86400)) { |
| 99 |
|
// 86400 = 24 hours |
| 100 |
|
$currentSetting = ini_get('max_execution_time'); |
|
@@ 98-110 (lines=13) @@
|
| 95 |
|
'%4$s' => $currentSetting |
| 96 |
|
]); |
| 97 |
|
} |
| 98 |
|
if (false === ini_set('max_execution_time', 86400)) { |
| 99 |
|
// 86400 = 24 hours |
| 100 |
|
$currentSetting = ini_get('max_execution_time'); |
| 101 |
|
if ($currentSetting > 0) { |
| 102 |
|
// 0 = unlimited time |
| 103 |
|
$warnings[] = $this->translator->__f('Could not use %1$s to set the %2$s to the value of %3$s. The install or upgrade process may fail at your current setting of %4$s.', [ |
| 104 |
|
'%1$s' => 'ini_set', |
| 105 |
|
'%2$s' => 'max_execution_time', |
| 106 |
|
'%3$s' => '86400', |
| 107 |
|
'%4$s' => $currentSetting |
| 108 |
|
]); |
| 109 |
|
} |
| 110 |
|
} |
| 111 |
|
|
| 112 |
|
return $warnings; |
| 113 |
|
} |