Skip to content

Commit 48fe40c

Browse files
committed
Sync.
1 parent e6ca6fb commit 48fe40c

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

SigTool.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* SigTool v2.0.2 (last modified: 2026.03.18).
3+
* SigTool v2.0.2 (last modified: 2026.03.20).
44
* @link https://github.com/phpMussel/SigTool
55
*
66
* Generates signatures for phpMussel using main.cvd and daily.cvd from ClamAV.
@@ -25,7 +25,7 @@ class SigTool extends \Maikuolan\Common\YAML
2525
/**
2626
* @var string Last modified date.
2727
*/
28-
public const MODIFIED = '2026.03.18';
28+
public const MODIFIED = '2026.03.20';
2929

3030
/**
3131
* @var int Safe file chunk size for when reading files.
@@ -288,7 +288,7 @@ private function formatSize(int $Size): string
288288
* Terminate with debug information.
289289
*/
290290
$Terminate = function ($Err = '_Error_Other', $Msg = '') use (&$SigTool, &$L10N) {
291-
$Debug = \debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT | \DEBUG_BACKTRACE_IGNORE_ARGS, 1)[0];
291+
$Debug = \debug_backtrace(\DEBUG_BACKTRACE_PROVIDE_OBJECT | \DEBUG_BACKTRACE_IGNORE_ARGS, 1)[0];
292292
$SigTool->outputMessage(\sprintf($L10N[$Err] ?? $L10N['_Error_Other'], $Debug['line'], $Msg), true);
293293
echo "\n\n";
294294
die;

YAML.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* YAML handler (last modified: 2026.03.18).
3+
* YAML handler (last modified: 2026.03.20).
44
*
55
* This file is a part of the "common classes package", utilised by a number of
66
* packages and projects, including CIDRAM and phpMussel.
@@ -248,11 +248,11 @@ public function process(string $In, array &$Arr, int $Depth = 0, bool $Refs = fa
248248
return;
249249
});
250250

251-
$Attempt = iconv($this->LastInputEncoding, 'UTF-8', $In);
251+
$Attempt = \iconv($this->LastInputEncoding, 'UTF-8', $In);
252252
if (
253253
$Attempt === false ||
254254
!$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
256256
) {
257257
return false;
258258
}
@@ -1069,14 +1069,14 @@ private function unescape(string $Value = '', string $Style = '"'): string
10691069
if (($Decoded = \hex2bin($Captured[2])) === false) {
10701070
return $Captured[0];
10711071
}
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);
10731073
return $Captured[1] . (($Attempt !== false && \strcmp($Reversed, $Decoded) === 0) ? $Attempt : $Decoded);
10741074
}, $Value);
10751075
$Value = \preg_replace_callback('~(?<!\\\\)\\\\((?:\\\\{2})*)U([\dA-Fa-f]{8})~', function ($Captured) {
10761076
if (($Decoded = \hex2bin($Captured[2])) === false) {
10771077
return $Captured[0];
10781078
}
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);
10801080
return $Captured[1] . (($Attempt !== false && \strcmp($Reversed, $Decoded) === 0) ? $Attempt : $Decoded);
10811081
}, $Value);
10821082
$Value = \str_replace('\\\\', '\\', $Value);

0 commit comments

Comments
 (0)