Welcome Guest, Not a member yet? Register   Sign In
Migrating a CI3 PHP 5.4 project to 7.4
#1

Hello,
I have been handed down a CI 3.1 project running in PHP 7.4 but having phpunit running in PHP 5.4 (using ci-phpunit-test by @kenjis). It is a scientific project with many calculations and the test-suite is extensive. Migrating to phpunit 9.5 and the latest CI 3.1 and ci-phounit-test I see a worrisome problem with the tests - they differ, but very little:
Code:
Failed asserting that 414062.622816783 matches expected 414061.999043.
Expected :414061.999043
Actual  :414062.62281678
<Click to see difference>

Re-running the tests on the old machine the tests run correctly down to the sixth decimal.
Could PHP 5.6 and PHP 7.4 be that different in handling math?

Any thoughts?
/Mattias
Reply




Theme © iAndrew 2016 - Forum software by © MyBB