Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 64dabae3 authored by Pierre-Alain Bandinelli's avatar Pierre-Alain Bandinelli
Browse files

Fix PHP 7.4 Deprecate message

parent 64db6d15
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
6.1.2
6.1.3
+7 −7
Original line number Diff line number Diff line
@@ -700,7 +700,7 @@ END;
			{
				$iPos = \strpos($aTempArr[1], '?', 2);
				$aTempArr[0] = \substr($aTempArr[1], 2, $iPos - 2);
				$sEncType = \strtoupper($aTempArr[1]{$iPos + 1});
				$sEncType = \strtoupper($aTempArr[1][$iPos + 1]);
				switch ($sEncType)
				{
					case 'Q':
@@ -1986,13 +1986,13 @@ END;

		for ($iIndex = 0; $iLen > 0; $iIndex++, $iLen--)
		{
			$sChar = $sStr{$iIndex};
			$sChar = $sStr[$iIndex];
			if ($sChar == '&')
			{
				$iIndex++;
				$iLen--;

				$sChar = isset($sStr{$iIndex}) ? $sStr{$iIndex} : null;
				$sChar = isset($sStr[$iIndex]) ? $sStr[$iIndex] : null;
				if ($sChar === null)
				{
					break;
@@ -2008,7 +2008,7 @@ END;
				$iK = 10;
				for (; $iLen > 0; $iIndex++, $iLen--)
				{
					$sChar = $sStr{$iIndex};
					$sChar = $sStr[$iIndex];

					$iB = $aArray[\ord($sChar)];
					if ((\ord($sChar) & 0x80) || $iB == -1)
@@ -2052,7 +2052,7 @@ END;

				if (($iCh || $iK < 6) ||
					(!$iLen || $sChar != '-') ||
					($iLen > 2 && '&' === $sStr{$iIndex+1} && '-' !==  $sStr{$iIndex+2}))
					($iLen > 2 && '&' === $sStr[$iIndex+1] && '-' !==  $sStr[$iIndex+2]))
				{
					return $bError;
				}
@@ -2090,7 +2090,7 @@ END;

		while ($sLen)
		{
			$iC = \ord($sStr{$iIndex});
			$iC = \ord($sStr[$iIndex]);
			if ($iC < 0x80)
			{
				$iCh = $iC;
@@ -2140,7 +2140,7 @@ END;

			for ($iJ = 0; $iJ < $iN; $iJ++)
			{
				$iO = \ord($sStr{$iIndex+$iJ});
				$iO = \ord($sStr[$iIndex+$iJ]);
				if (($iO & 0xc0) != 0x80)
				{
					return $bError;
+2 −2
Original line number Diff line number Diff line
@@ -102,11 +102,11 @@ class Email

		while ($iCurrentIndex < \strlen($sEmailAddress))
		{
			switch ($sEmailAddress{$iCurrentIndex})
			switch ($sEmailAddress[$iCurrentIndex])
			{
//				case '\'':
				case '"':
//					$sQuoteChar = $sEmailAddress{$iCurrentIndex};
//					$sQuoteChar = $sEmailAddress[$iCurrentIndex];
					if ((!$bInName) && (!$bInAddress) && (!$bInComment))
					{
						$bInName = true;
+3 −3
Original line number Diff line number Diff line
@@ -156,16 +156,16 @@ class EmailCollection extends \MailSo\Base\Collection

		while ($iCurrentPos < $sWorkingRecipientsLen)
		{
			switch ($sWorkingRecipients{$iCurrentPos})
			switch ($sWorkingRecipients[$iCurrentPos])
			{
				case '\'':
				case '"':
					if (!$bIsInQuotes)
					{
						$sChQuote = $sWorkingRecipients{$iCurrentPos};
						$sChQuote = $sWorkingRecipients[$iCurrentPos];
						$bIsInQuotes = true;
					}
					else if ($sChQuote == $sWorkingRecipients{$iCurrentPos})
					else if ($sChQuote == $sWorkingRecipients[$iCurrentPos])
					{
						$bIsInQuotes = false;
					}
+2 −2
Original line number Diff line number Diff line
@@ -111,11 +111,11 @@ class EmailDep

		while ($iCurrentIndex < \strlen($sEmailAddress))
		{
			switch ($sEmailAddress{$iCurrentIndex})
			switch ($sEmailAddress[$iCurrentIndex])
			{
//				case '\'':
				case '"':
//					$sQuoteChar = $sEmailAddress{$iCurrentIndex};
//					$sQuoteChar = $sEmailAddress[$iCurrentIndex];
					if ((!$bInName) && (!$bInAddress) && (!$bInComment))
					{
						$bInName = true;
Loading