mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-11 00:14:50 +03:00
PHP < 8.1 ini_set() only accepts strings when declare(strict_types=1); is used
This commit is contained in:
parent
2750e0698d
commit
32e933b435
4 changed files with 10 additions and 10 deletions
|
|
@ -130,7 +130,7 @@ trait Contacts
|
|||
if (!$this->FilesProvider()->MoveUploadedFile($oAccount, $sSavedName, $aFile['tmp_name'])) {
|
||||
$iError = \RainLoop\Enumerations\UploadError::ON_SAVING;
|
||||
} else {
|
||||
\ini_set('auto_detect_line_endings', true);
|
||||
\ini_set('auto_detect_line_endings', '1');
|
||||
$mData = $this->FilesProvider()->GetFile($oAccount, $sSavedName);
|
||||
if ($mData) {
|
||||
$sFileStart = \fread($mData, 20);
|
||||
|
|
@ -153,7 +153,7 @@ trait Contacts
|
|||
unset($mData);
|
||||
$this->FilesProvider()->Clear($oAccount, $sSavedName);
|
||||
|
||||
\ini_set('auto_detect_line_endings', false);
|
||||
\ini_set('auto_detect_line_endings', '0');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -34,11 +34,11 @@ abstract class Api
|
|||
\usleep(10000);
|
||||
$oConfig->Load();
|
||||
}
|
||||
// \ini_set('display_errors', 0);
|
||||
// \ini_set('display_errors', '0');
|
||||
if ($oConfig->Get('debug', 'enable', false)) {
|
||||
\error_reporting(E_ALL);
|
||||
// \ini_set('display_errors', 1);
|
||||
\ini_set('log_errors', 1);
|
||||
// \ini_set('display_errors', '1');
|
||||
\ini_set('log_errors', '1');
|
||||
}
|
||||
}
|
||||
return $oConfig;
|
||||
|
|
|
|||
|
|
@ -17,9 +17,9 @@ abstract class Stream
|
|||
{
|
||||
\set_time_limit(0);
|
||||
\ob_implicit_flush();
|
||||
\ini_set('implicit_flush',1);
|
||||
\ini_set('output_buffering', 0);
|
||||
\ini_set('display_errors', 0);
|
||||
\ini_set('implicit_flush', '1');
|
||||
\ini_set('output_buffering', '0');
|
||||
\ini_set('display_errors', '0');
|
||||
if ($i = \ob_get_level()) {
|
||||
# Clear buffers:
|
||||
while ($i-- && \ob_end_clean());
|
||||
|
|
|
|||
|
|
@ -48,8 +48,8 @@ if (!defined('APP_INDEX_ROOT_PATH')) {
|
|||
// revoke permissions
|
||||
umask(0077);
|
||||
|
||||
ini_set('register_globals', 0);
|
||||
ini_set('xdebug.max_nesting_level', 500);
|
||||
ini_set('register_globals', '0');
|
||||
ini_set('xdebug.max_nesting_level', '500');
|
||||
|
||||
define('APP_VERSION_ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue