Migrating a CI3 PHP 5.4 project to 7.4 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17) +--- Thread: Migrating a CI3 PHP 5.4 project to 7.4 (/showthread.php?tid=84790) |
Migrating a CI3 PHP 5.4 project to 7.4 - tgix - 11-10-2022 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. 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 |