05-08-2021, 05:25 AM
I have seen some projects were abandoned during the pHp 7 upgrade. The major thing was it removed mysql_real_escape_string. It was required as sql injection was at its peak. Those who upgraded their source code has not lost in the game. Coming to PHP 8 I see the rules are more strict, mcrypt has deprecated. Also even the variable code required to be in proper syntax. I mean in php7 it was accepted that we can print variable like $result[id] but in php 8 we must use $result['id']. Even such small things are being concentrated to ensure the code is in a good manner. I see the upgrades are for the best rather than a burden. It gives much better experience if we can upgrade the projects.