go to bug id or search bugs for
Many tests have input values like 10.5e10 that must be converted to integer values. On 32-bit systems, the conversion overflows. According to the PHP manual:
If the float is beyond the boundaries of integer (usually +/- 2.15e+9 = 2^31), the result is undefined, since the float doesn't have enough precision to give an exact integer result. No warning, not even a notice will be issued when this happens!
Therefore, the tests are attempting to verify undefined values.
We found a bunch of testcases with this issue by running in a ppc64 kernel / ppc32 userspace:
We also found the following test had issues on ppc64/ppc64:
These tests should not be checking for the value of the direct or indirect overflow of a float to integer conversion. The tests should have the one or two subtests that do this removed.
The tests fail on some platforms, especially split 64/32-bit installations.
Add a Patch
Add a Pull Request
Can you update the list of failing tests with current PHP_5_3 / trunk ?
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.