History log of /php-src/ext/fileinfo/tests/bug78987.phpt (Results 1 – 12 of 12)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 4ded2476 10-Apr-2024 Michael Orlitzky

ext/fileinfo/tests/bug78987.phpt: increase a memory limit

This test performs a few checks to ensure that "not too much" memory
is used while fileinfo is detecting encodings. It is howeve

ext/fileinfo/tests/bug78987.phpt: increase a memory limit

This test performs a few checks to ensure that "not too much" memory
is used while fileinfo is detecting encodings. It is however platform
specific, and memory usage varies across hosts and as libmagic changes.

Recently a Gentoo user reported a failure in this test at,

https://bugs.gentoo.org/927461

on a big-endian PPC64 machine with output,

---- EXPECTED OUTPUT
131072 => ok
262144 => ok
524288 => ok
1048576 => ok
2097152 => ok
4194304 => ok
8388608 => ok
16777216 => ok
---- ACTUAL OUTPUT
131072 => 10092544
262144 => 10092544
524288 => 12189696
1048576 => 12189696
2097152 => 14352384
4194304 => 18612224
8388608 => 24903680
16777216 => 37486592
---- FAILED

Those numbers are with 8.3.4 and therefore missing commit b7c5813c
which also raises the limits. Checking the "actual" numbers above
against the current values, we see that the limit for 524288 would
need to be bumped to 12189696 to allow this test to pass. Since that
seems reasonable, that's what this commit does.

Closes GH-13795
Closes GH-13940

show more ...


# b7c5813c 13-Feb-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Update libmagic to 5.45 (#13369)

* Update libmagic to 5.45

This also cleans up magicdata.patch: changes that are already in upstream file
were removed from that patch file.

Update libmagic to 5.45 (#13369)

* Update libmagic to 5.45

This also cleans up magicdata.patch: changes that are already in upstream file
were removed from that patch file.

There are five (expected) test output changes.
All these were also checked with the file command.

- bug77961.phpt changes because there's now an early error-return in the
`if (ts == FILE_BADSIZE) {` branch.
- cve-2014-1943.phpt and cve-2014-1943-mb.phpt change because now the crafted
data is recognised as a simh file.
- bug71434.phpt now properly recognises it as a Python file.
- ext/fileinfo/tests/finfo_file_basic.phpt more specific mime type.

* Adjust memory requirement for s390x fileinfo run

The larger database causes a higher memory usage.
Similar to 962c082a5b7b94f7a3779378e8ab83bedb4445ad.

* [ci skip] NEWS

show more ...


# 962c082a 02-Oct-2022 Anatol Belski

fileinfo: Fix expected values for test on s390x

The peak memory usage increased by the blanket 1mb on s390 only.
This is good to note but otherwise seems acceptable, so just
adjustin

fileinfo: Fix expected values for test on s390x

The peak memory usage increased by the blanket 1mb on s390 only.
This is good to note but otherwise seems acceptable, so just
adjusting the test is fine.

Signed-off-by: Anatol Belski <ab@php.net>

show more ...


Revision tags: php-8.2.0RC1, php-8.1.10, php-8.0.23, php-8.0.23RC1, php-8.1.10RC1, php-8.2.0beta3, php-8.2.0beta2, php-8.1.9, php-8.0.22, php-8.1.9RC1, php-8.2.0beta1, php-8.0.22RC1, php-8.0.21, php-8.1.8, php-8.2.0alpha3, php-8.1.8RC1, php-8.2.0alpha2, php-8.0.21RC1, php-8.0.20, php-8.1.7, php-8.2.0alpha1, php-7.4.30, php-8.1.7RC1, php-8.0.20RC1, php-8.1.6, php-8.0.19, php-8.1.6RC1, php-8.0.19RC1, php-8.0.18, php-8.1.5, php-7.4.29, php-8.1.5RC1, php-8.0.18RC1, php-8.1.4, php-8.0.17, php-8.1.4RC1, php-8.0.17RC1, php-8.1.3, php-8.0.16, php-7.4.28, php-8.1.3RC1, php-8.0.16RC1, php-8.1.2, php-8.0.15, php-8.1.2RC1, php-8.0.15RC1, php-8.0.14, php-8.1.1, php-7.4.27, php-8.1.1RC1, php-8.0.14RC1, php-7.4.27RC1, php-8.1.0, php-8.0.13, php-7.4.26, php-7.3.33, php-8.1.0RC6, php-7.4.26RC1, php-8.0.13RC1, php-8.1.0RC5, php-7.3.32, php-7.4.25, php-8.0.12, php-8.1.0RC4, php-8.0.12RC1, php-7.4.25RC1, php-8.1.0RC3, php-8.0.11, php-7.4.24, php-7.3.31
# 1399e08a 19-Sep-2021 Anatol Belski

Merge branch 'PHP-8.0' into PHP-8.1

* PHP-8.0:
fileinfo: Fix test value for s390x on travis-ci


# 8f75ab0d 19-Sep-2021 Anatol Belski

fileinfo: Fix test value for s390x on travis-ci

Signed-off-by: Anatol Belski <ab@php.net>

# 62bfadc3 18-Sep-2021 Anatol Belski

Merge branch 'PHP-8.0' into PHP-8.1

* PHP-8.0:
fileinfo: Capture more sizes for test as delivered by travis-ci
fileinfo: Capture more sizes for test as delivered by AppVeyor


# 6e0acece 18-Sep-2021 Anatol Belski

fileinfo: Capture more sizes for test as delivered by travis-ci

Signed-off-by: Anatol Belski <ab@php.net>

# e56435c8 18-Sep-2021 Anatol Belski

fileinfo: Capture more sizes for test as delivered by AppVeyor

Signed-off-by: Anatol Belski <ab@php.net>

# f88fb1af 18-Sep-2021 Anatol Belski

Merge branch 'PHP-8.0' into PHP-8.1

* PHP-8.0:
fileinfo: Adjust value in test


# 0208374a 18-Sep-2021 Anatol Belski

fileinfo: Adjust value in test

Signed-off-by: Anatol Belski <ab@php.net>

# df5d7ec4 18-Sep-2021 Anatol Belski

fileinfo: Fix test skip condition

Signed-off-by: Anatol Belski <ab@php.net>

# fa96c7e0 18-Sep-2021 Anatol Belski

fileinfo: Fixed bug #78987 High memory usage during encoding detection

The default buffer size for the encoding detection is set to 64K.

Signed-off-by: Anatol Belski <ab@php.net>