From a96dff152a3fa1a1e0cf8c47b17b393207084104 Mon Sep 17 00:00:00 2001 From: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Date: Tue, 16 Jul 2024 20:14:01 +0200 Subject: [PATCH] Delete bug78987.phpt test This test fails over and over again every time we update the library or because of small changes elsewhere. This leads to a cycle of test failures and us bumping the values again. This test has little value so I propose to just get rid of it. Fixes GH-13795. --- ext/fileinfo/tests/bug78987.phpt | 40 -------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 ext/fileinfo/tests/bug78987.phpt diff --git a/ext/fileinfo/tests/bug78987.phpt b/ext/fileinfo/tests/bug78987.phpt deleted file mode 100644 index ab7d9cad7167f..0000000000000 --- a/ext/fileinfo/tests/bug78987.phpt +++ /dev/null @@ -1,40 +0,0 @@ ---TEST-- -Bug #78987 High memory usage during encoding detection ---EXTENSIONS-- -fileinfo ---INI-- -memory_limit=512M ---FILE-- - 10612736, - 262144 => 10612736, - 524288 => 12189696, - 1048576 => 12709888, - 2097152 => 14811136, - 4194304 => 19009536, - 8388608 => 25300992, - 16777216 => 37883904, -); -for($size = $minSize; $size <= $maxSize; $size *= 2) { - $content = str_repeat('0', $size); - - $finfo->buffer($content); - - $m = memory_get_peak_usage(true); - printf("%-8d => %s\n", $size, $m <= $map[$size] ? "ok" : "$m"); -} -?> ---EXPECT-- -131072 => ok -262144 => ok -524288 => ok -1048576 => ok -2097152 => ok -4194304 => ok -8388608 => ok -16777216 => ok