[php-src] PR #14814: ext/standard/tests: 32bit wordwrap tests aren't just for Windows
| From: | orlitzky | Date: | Thu, 04 Jul 2024 11:09:49 +0000 |
| Subject: | [php-src] PR #14814: ext/standard/tests: 32bit wordwrap tests aren't just for Windows | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-27020@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/14814
Author: orlitzky
The test in
strings/wordwrap_memory_limit.phpt has a counterpart in
strings/wordwrap_memory_limit_win32.phpt. The two are conditional on both the OS name
and the size of an int (32- versus 64-bits).
A Gentoo Linux user has however reported that the 64-bit test fails on a 32-bit system, with
precisely the error message that the "win32" test is expecting. I don't have any
32-bit hardware to test myself, but I think it's reasonable to conclude that the OS name is not
an essential part of the test: it's simply 32- versus 64-bit.
This commit drops the conditionals for the OS name. Now one test will be run on 32-bit systems, and
the other on 64-bit systems, regardless of the OS name.
Bug: https://bugs.gentoo.org/935382