Skip to content

Commit 1b7eb09

Browse files
committed
Sync.
1 parent e4f3700 commit 1b7eb09

8 files changed

Lines changed: 25 additions & 25 deletions

File tree

l10n/fr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# License: GNU/GPLv2
88
# @see LICENSE.txt
99
#
10-
# This file: French language data (last modified: 2025.03.29).
10+
# This file: French language data (last modified: 2026.03.26).
1111
#
1212
# Regarding translations: My native language is English. Because this is a free
1313
# and open-source hobby project which generates zero income, and translatable
@@ -30,7 +30,7 @@ SafeBrowseLookup:
3030
401: "Erreur d'autorisation de l'API"
3131
503: "Le service de l'API est indisponible"
3232
999: "Erreur API inconnue"
33-
error_log_header: "Si les erreurs suivantes persistent, pour les rapporter ou pour obtenir de l'aide, créer un nouveau issue sur la page des issues pour phpMussel à GitHub lorsque vous avez un moment disponible, avec les erreurs en question ainsi que toute autre information pertinente jointe. Merci."
33+
error_log_header: "Si les erreurs suivantes persistent, pour les rapporter ou pour obtenir de l'aide, créez un nouveau issue sur la page des issues pour phpMussel sur GitHub lorsque vous avez un moment disponible, avec les erreurs en question ainsi que toute autre information pertinente jointe. Merci."
3434
field:
3535
Date: "Date\_"
3636
Hash signatures reconstruction: "Reconstruction de signatures hachage"

l10n/ja.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# License: GNU/GPLv2
88
# @see LICENSE.txt
99
#
10-
# This file: Japanese language data (last modified: 2025.03.29).
10+
# This file: Japanese language data (last modified: 2026.05.06).
1111
#
1212
# Regarding translations: My native language is English. Because this is a free
1313
# and open-source hobby project which generates zero income, and translatable
@@ -30,7 +30,7 @@ SafeBrowseLookup:
3030
401: "API認証エラー"
3131
503: "APIサービス利用不可"
3232
999: "不明なAPIエラー"
33-
error_log_header: "次のエラーのいずれかが引き続き発生する場合、それらを報告する、またはサポートを求めるには、GitHubのphpMusselイシューズ・ページで新しいイシューを作成してください。エラーとその他の関連情報を含めますください。ありがとう。"
33+
error_log_header: "次のエラーのいずれかが引き続き発生する場合、それらを報告する、またはサポートを求めるには、GitHubのphpMusselイシューズ・ページで新しいイシューを作成してください。 エラーとその他の関連情報を含めますください。 ありがとう。"
3434
field:
3535
Date: "日時"
3636
Hash signatures reconstruction: "ハッシュ・シグネチャの再構築"

l10n/zh.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# License: GNU/GPLv2
88
# @see LICENSE.txt
99
#
10-
# This file: Chinese language data (last modified: 2025.09.21).
10+
# This file: Chinese language data (last modified: 2026.05.06).
1111
#
1212
# Regarding translations: My native language is English. Because this is a free
1313
# and open-source hobby project which generates zero income, and translatable
@@ -31,8 +31,8 @@ SafeBrowseLookup:
3131
503: {"zh-Hans": "API服务不可用", "zh-Hant": "API服務不可用"}
3232
999: {"zh-Hans": "未知API错误", "zh-Hant": "未知API錯誤"}
3333
error_log_header:
34-
zh-Hans: "如果以下任何错误继续发生,为了报告他们或寻求支持,有空的时候,请在GitHub的phpMussel issues页面上创建新issue。包括有问题的错误以及任何其他相关信息。谢谢。"
35-
zh-Hant: "如果以下任何錯誤繼續發生,為了報告他們或尋求支持,有空的時候,請在GitHub的phpMussel issues頁面上創建新issue。包括有問題的錯誤以及任何其他相關信息。謝謝。"
34+
zh-Hans: "如果以下任何错误继续发生,为了报告他们或寻求支持,有空的时候,请在GitHub的phpMussel issues页面上创建新issue。 包括有问题的错误以及任何其他相关信息。 谢谢。"
35+
zh-Hant: "如果以下任何錯誤繼續發生,為了報告他們或尋求支持,有空的時候,請在GitHub的phpMussel issues頁面上創建新issue。 包括有問題的錯誤以及任何其他相關信息。 謝謝。"
3636
field:
3737
Date: "日期"
3838
Hash signatures reconstruction: {"zh-Hans": "哈希签名重建", "zh-Hant": "哈希簽名重建"}

src/CompressionHandler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* License: GNU/GPLv2
99
* @see LICENSE.txt
1010
*
11-
* This file: Compression handler (last modified: 2026.03.18).
11+
* This file: Compression handler (last modified: 2026.03.26).
1212
*/
1313

1414
namespace phpMussel\Core;
@@ -90,7 +90,7 @@ public function TryEverything(): bool
9090
* definitely be useless warnings and notices generated. So, let's
9191
* silence them.
9292
*/
93-
set_error_handler(function ($errno, $errstr, $errfile, $errline) {
93+
\set_error_handler(function ($errno, $errstr, $errfile, $errline) {
9494
});
9595

9696
/** Loop until data state doesn't change anymore. */
@@ -108,7 +108,7 @@ public function TryEverything(): bool
108108
}
109109

110110
/** We're done guessing, so we'll restore the previous error handler. */
111-
restore_error_handler();
111+
\restore_error_handler();
112112

113113
/**
114114
* Compare original data state against current data state, and return

src/Loader.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* License: GNU/GPLv2
99
* @see LICENSE.txt
1010
*
11-
* This file: The loader (last modified: 2026.03.20).
11+
* This file: The loader (last modified: 2026.03.26).
1212
*/
1313

1414
namespace phpMussel\Core;
@@ -271,7 +271,7 @@ public function __construct(
271271
* @return bool True to end further processing; False to defer processing.
272272
* @return callable
273273
*/
274-
set_error_handler(function ($errno, $errstr, $errfile, $errline) use (&$Errors, &$Events) {
274+
\set_error_handler(function ($errno, $errstr, $errfile, $errline) use (&$Errors, &$Events) {
275275
$Errors[] = [$errno, $errstr, $errfile, $errline];
276276
if ($Events->assigned('error')) {
277277
$Events->fireEvent('error', '', $errno, $errstr, $errfile, $errline);
@@ -455,7 +455,7 @@ public function __destruct()
455455
}
456456

457457
/** Restore default error handler. */
458-
restore_error_handler();
458+
\restore_error_handler();
459459
}
460460

461461
/**

src/PdfHandler.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* License: GNU/GPLv2
99
* @see LICENSE.txt
1010
*
11-
* This file: Pdf handler (last modified: 2026.03.18).
11+
* This file: Pdf handler (last modified: 2026.03.26).
1212
*/
1313

1414
namespace phpMussel\Core;
@@ -57,7 +57,7 @@ public function __construct(string $File)
5757
* risk of non-PDF files or bad data being supplied here, we'll
5858
* temporarily suppress those errors.
5959
*/
60-
set_error_handler(function ($errno, $errstr, $errfile, $errline) {
60+
\set_error_handler(function ($errno, $errstr, $errfile, $errline) {
6161
return;
6262
});
6363

@@ -187,7 +187,7 @@ public function __construct(string $File)
187187
$Changed = false;
188188
if (\substr($Params['Filter'], 0, 12) === '/FlateDecode') {
189189
$Params['Filter'] = \trim(\substr($Params['Filter'], 12));
190-
$Try = gzuncompress($Tree[$Iterator]['Stream']);
190+
$Try = \gzuncompress($Tree[$Iterator]['Stream']);
191191
if ($Try !== false) {
192192
$Tree[$Iterator]['Stream'] = $Try;
193193
$Changed = true;
@@ -213,7 +213,7 @@ public function __construct(string $File)
213213
if (\substr($Params['Filter'], 0, 10) === '/LZWDecode') {
214214
$Params['Filter'] = \trim(\substr($Params['Filter'], 10));
215215
if (\function_exists('lzf_decompress')) {
216-
$Try = lzf_decompress($Tree[$Iterator]['Stream']);
216+
$Try = \lzf_decompress($Tree[$Iterator]['Stream']);
217217
if ($Try !== false) {
218218
$Tree[$Iterator]['Stream'] = $Try;
219219
$Changed = true;
@@ -293,7 +293,7 @@ public function __construct(string $File)
293293
}
294294

295295
/** Restore the previous error handler. */
296-
restore_error_handler();
296+
\restore_error_handler();
297297

298298
/** All is good. */
299299
$this->ErrorState = 0;
@@ -318,11 +318,11 @@ public function base85_decode(string $In): string
318318
$Out = '';
319319
while ($Chunk = \substr($In, $Num * 5, 5)) {
320320
$Char = 0;
321-
foreach (unpack('C*', $Chunk) as $ThisChar) {
321+
foreach (\unpack('C*', $Chunk) as $ThisChar) {
322322
$Char *= 85;
323323
$Char += $ThisChar - 33;
324324
}
325-
$Out .= pack('N', $Char);
325+
$Out .= \pack('N', $Char);
326326
$Num++;
327327
}
328328
return \substr($Out, 0, \strlen($Out) - $Padding);

src/Scanner.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* License: GNU/GPLv2
99
* @see LICENSE.txt
1010
*
11-
* This file: The scanner (last modified: 2026.03.18).
11+
* This file: The scanner (last modified: 2026.04.19).
1212
*/
1313

1414
namespace phpMussel\Core;
@@ -2564,7 +2564,7 @@ private function dataHandler(string $str = '', int $Depth = 0, string $OriginalF
25642564
if ($this->Loader->Configuration['urlscanner']['google_api_key'] && $URLScanner['URLsCount']) {
25652565
$URLScanner['URLsChunked'] = (
25662566
$URLScanner['URLsCount'] > 500
2567-
) ? array_chunk($URLScanner['URLParts'], 500) : [$URLScanner['URLParts']];
2567+
) ? \array_chunk($URLScanner['URLParts'], 500) : [$URLScanner['URLParts']];
25682568
$URLScanner['URLChunks'] = \count($URLScanner['URLsChunked']);
25692569
for ($i = 0; $i < $URLScanner['URLChunks']; $i++) {
25702570
/** Maximum API lookups reached; abort accordingly. */
@@ -3403,7 +3403,7 @@ private function memoryUse(string $Path, int $Delete = 0, int $DeleteFiles = 0):
34033403
$List = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($Path, \RecursiveDirectoryIterator::SKIP_DOTS), \RecursiveIteratorIterator::SELF_FIRST);
34043404
foreach ($List as $Item => $List) {
34053405
$File = \str_replace('\\', '/', \substr($Item, $Offset));
3406-
if ($File && \strtolower(\substr($Item, -4)) === '.qfu' && \is_file($Item) && !is_link($Item) && \is_readable($Item)) {
3406+
if ($File && \strtolower(\substr($Item, -4)) === '.qfu' && \is_file($Item) && !\is_link($Item) && \is_readable($Item)) {
34073407
$Files[$File] = \filemtime($Item);
34083408
}
34093409
}

src/TemporaryFileHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* License: GNU/GPLv2
99
* @see LICENSE.txt
1010
*
11-
* This file: Temporary file handler (last modified: 2026.03.18).
11+
* This file: Temporary file handler (last modified: 2026.04.15).
1212
*/
1313

1414
namespace phpMussel\Core;
@@ -60,7 +60,7 @@ public function __construct(string $Content, string $Location)
6060
public function __destruct()
6161
{
6262
if ($this->Filename && \file_exists($this->Filename)) {
63-
unlink($this->Filename);
63+
\unlink($this->Filename);
6464
}
6565
}
6666
}

0 commit comments

Comments
 (0)