4 ms·
Worked on a project for almost a year with PHP 5.6 (I started the project knowing PHP 7.0 was already out there for anyone to use). This might have been fine to
by mattbgates 10y ago
Worked on a project for almost a year with PHP 5.6 (I started the project knowing PHP 7.0 was already out there for anyone to use). This might have been fine to leave for a little project, but since it is a SaaS and likely will require updates in the future, figured I'd switch it over to PHP 7.0 (better security, speeds, etc.). Upon the switch, there was nothing but errors. Turned out that some database code I was using wasn't compatible with PHP 7.0. Had to go through every file that touched the database and update it with new code. Luckily the project is still in development and hadn't yet reached public use, so "oops" for using outdated code, but "awesome" because updating the code from PHP 5.6 to PHP 7.0 took about a week... and now I have more peace of mind. It'll be years before PHP 8.0 comes out, right? Hehe.