Poll: Would you consider upgrading to PHP 8.0? You do not have permission to vote in this poll. |
|||
Yes | 34 | 91.89% | |
No | 3 | 8.11% | |
Total | 37 vote(s) | 100% |
* You voted for this item. | [Show Results] |
Surprised to see codeigniter 3.x running successfull with PHP 8.0 as well. |
(01-14-2021, 04:28 PM)CINewb Wrote: Today I installed PHP8 and tried it with our CodeIgniter 3 project. Indeed. I'm guessing the logic was to allow "temporary" variables to store an expiry time when they expire and flash messages to expire straight away and avoiding a dual check. PHP8 Changes the behaviour of comparing strings to numbers. https://wiki.php.net/rfc/string_to_number_comparison In PHP 7.4 and Below "Old" == <Numeric> would equal True and "Old" < any numeric value would respectively equal true. This behaviour has now been changed. So far this has been the only bug I have found. Another Gotcha that doesen't affect CI but affects a lot of legacy code I look after is that the charming "STFU Operator" now doesen't STFU. $variable = @$array['entry']; Now throws an error rather than containing "null" gaaa. |