1
0
mirror of https://github.com/Ne-Lexa/php-zip.git synced 2025-08-11 01:34:36 +02:00
This commit is contained in:
Ne-Lexa
2021-12-12 12:50:30 +03:00
parent 83dd71e602
commit bfff5f475a
25 changed files with 336 additions and 323 deletions

View File

@@ -747,7 +747,7 @@ class ZipFileTest extends ZipTestCase
$comment = 'Very long comment' . \PHP_EOL
. 'Очень длинный комментарий' . \PHP_EOL;
$comment = str_repeat($comment, (int) ceil(0xffff / \strlen($comment)) + \strlen($comment) + 1);
$comment = str_repeat($comment, (int) ceil(0xFFFF / \strlen($comment)) + \strlen($comment) + 1);
$zipFile = new ZipFile();
$zipFile->setArchiveComment($comment);
@@ -840,7 +840,7 @@ class ZipFileTest extends ZipTestCase
$comment = 'Very long comment' . \PHP_EOL
. 'Очень длинный комментарий' . \PHP_EOL;
$comment = str_repeat($comment, (int) ceil(0xffff / \strlen($comment)) + \strlen($comment) + 1);
$comment = str_repeat($comment, (int) ceil(0xFFFF / \strlen($comment)) + \strlen($comment) + 1);
$zipFile = new ZipFile();
$zipFile->addFile(__FILE__, 'test');
@@ -925,7 +925,7 @@ class ZipFileTest extends ZipTestCase
[-10],
[-2],
[10],
[0xffff],
[0xFFFF],
];
}