|
1 | 1 | <?php |
2 | 2 | /** |
3 | | - * YAML handler (last modified: 2026.03.18). |
| 3 | + * YAML handler (last modified: 2026.03.20). |
4 | 4 | * |
5 | 5 | * This file is a part of the "common classes package", utilised by a number of |
6 | 6 | * packages and projects, including CIDRAM and phpMussel. |
@@ -248,11 +248,11 @@ public function process(string $In, array &$Arr, int $Depth = 0, bool $Refs = fa |
248 | 248 | return; |
249 | 249 | }); |
250 | 250 |
|
251 | | - $Attempt = iconv($this->LastInputEncoding, 'UTF-8', $In); |
| 251 | + $Attempt = \iconv($this->LastInputEncoding, 'UTF-8', $In); |
252 | 252 | if ( |
253 | 253 | $Attempt === false || |
254 | 254 | !$this->Demojibakefier->checkConformity($Attempt, 'UTF-8') || |
255 | | - \strcmp(iconv('UTF-8', $this->LastInputEncoding, $Attempt), $In) !== 0 |
| 255 | + \strcmp(\iconv('UTF-8', $this->LastInputEncoding, $Attempt), $In) !== 0 |
256 | 256 | ) { |
257 | 257 | return false; |
258 | 258 | } |
@@ -1069,14 +1069,14 @@ private function unescape(string $Value = '', string $Style = '"'): string |
1069 | 1069 | if (($Decoded = \hex2bin($Captured[2])) === false) { |
1070 | 1070 | return $Captured[0]; |
1071 | 1071 | } |
1072 | | - $Reversed = ($Attempt = iconv('UTF-16BE', 'UTF-8', $Decoded)) === false ? '' : iconv('UTF-8', 'UTF-16BE', $Attempt); |
| 1072 | + $Reversed = ($Attempt = \iconv('UTF-16BE', 'UTF-8', $Decoded)) === false ? '' : \iconv('UTF-8', 'UTF-16BE', $Attempt); |
1073 | 1073 | return $Captured[1] . (($Attempt !== false && \strcmp($Reversed, $Decoded) === 0) ? $Attempt : $Decoded); |
1074 | 1074 | }, $Value); |
1075 | 1075 | $Value = \preg_replace_callback('~(?<!\\\\)\\\\((?:\\\\{2})*)U([\dA-Fa-f]{8})~', function ($Captured) { |
1076 | 1076 | if (($Decoded = \hex2bin($Captured[2])) === false) { |
1077 | 1077 | return $Captured[0]; |
1078 | 1078 | } |
1079 | | - $Reversed = ($Attempt = iconv('UTF-32BE', 'UTF-8', $Decoded)) === false ? '' : iconv('UTF-8', 'UTF-32BE', $Attempt); |
| 1079 | + $Reversed = ($Attempt = \iconv('UTF-32BE', 'UTF-8', $Decoded)) === false ? '' : \iconv('UTF-8', 'UTF-32BE', $Attempt); |
1080 | 1080 | return $Captured[1] . (($Attempt !== false && \strcmp($Reversed, $Decoded) === 0) ? $Attempt : $Decoded); |
1081 | 1081 | }, $Value); |
1082 | 1082 | $Value = \str_replace('\\\\', '\\', $Value); |
|
0 commit comments