Skip to content

Test failing in ext/fileinfo/tests/bug78987.phpt on big-endian PPC #13795

@orlitzky

Description

@orlitzky

Description

We have a report of a test failure on Gentoo at https://bugs.gentoo.org/927461 that has been confirmed in php-8.3.3. The machine in question is a big-endian Linux-6.8.1-gentoo-ppc64-ppc64-POWER9_-architected-,_altivec_supported-with-glibc2.38. The same test does not fail on a little-endian machine.

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Bug #78987 High memory usage during encoding detection [ext/fileinfo/tests/bug78987.phpt]
=====================================================================

---- EXPECTED OUTPUT
131072   => ok
262144   => ok
524288   => ok
1048576  => ok
2097152  => ok
4194304  => ok
8388608  => ok
16777216 => ok
---- ACTUAL OUTPUT
131072   => 9175040
262144   => 9175040
524288   => ok
1048576  => 11272192
2097152  => 13434880
4194304  => 17694720
8388608  => 23986176
16777216 => 36569088
---- FAILED

It's worth mentioning that, for example, $map[131072] = 10612736 is actually bigger than 9175040.

PHP Version

PHP 8.3.3

Operating System

Gentoo linux

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions