| 1 | Patch-Source: https://github.com/php/php-src/commit/962c082a5b7b94f7a3779378e8ab83bedb4445ad
|
| 2 | From 962c082a5b7b94f7a3779378e8ab83bedb4445ad Mon Sep 17 00:00:00 2001
|
| 3 | From: Anatol Belski <[email protected]>
|
| 4 | Date: Sun, 2 Oct 2022 19:54:34 +0200
|
| 5 | Subject: [PATCH] fileinfo: Fix expected values for test on s390x
|
| 6 |
|
| 7 | The peak memory usage increased by the blanket 1mb on s390 only.
|
| 8 | This is good to note but otherwise seems acceptable, so just
|
| 9 | adjusting the test is fine.
|
| 10 |
|
| 11 | Signed-off-by: Anatol Belski <[email protected]>
|
| 12 | ---
|
| 13 | ext/fileinfo/tests/bug78987.phpt | 16 ++++++++--------
|
| 14 | 1 file changed, 8 insertions(+), 8 deletions(-)
|
| 15 |
|
| 16 | diff --git a/ext/fileinfo/tests/bug78987.phpt b/ext/fileinfo/tests/bug78987.phpt
|
| 17 | index 617d8ca4412d..423ecb1b8517 100644
|
| 18 | |
| 19 | |
| 20 | @@ -11,14 +11,14 @@ $minSize = 128 * 1024;
|
| 21 | $maxSize = 16 * 1024 * 1024;
|
| 22 |
|
| 23 | $map = array(
|
| 24 | - 131072 => 9113600,
|
| 25 | - 262144 => 9113600,
|
| 26 | - 524288 => 10850304,
|
| 27 | - 1048576 => 11210752,
|
| 28 | - 2097152 => 13312000,
|
| 29 | - 4194304 => 17510400,
|
| 30 | - 8388608 => 23801856,
|
| 31 | - 16777216 => 36384768,
|
| 32 | + 131072 => 10055680,
|
| 33 | + 262144 => 10055680,
|
| 34 | + 524288 => 11898880,
|
| 35 | + 1048576 => 12152832,
|
| 36 | + 2097152 => 14254080,
|
| 37 | + 4194304 => 18452480,
|
| 38 | + 8388608 => 24743936,
|
| 39 | + 16777216 => 37326848,
|
| 40 | );
|
| 41 | for($size = $minSize; $size <= $maxSize; $size *= 2) {
|
| 42 | $content = str_repeat('0', $size);
|