Hi PHP Masters!! I hope you are doing well! I want to ask you about some project which I am working on.
The thing is that a Client wants upgrade his PHP version from 5.1.x to 6.x.x / 7.x.x. The question is... Is it worth migrating from 5.x.x to 6.x.x and then to 7.x.x ? or Is it better from 5.1.x to 7.x.x directly? What do you believe? and why?

Thanks in advance!

There is no php6.

If going to the trouble of updating old code, just update to the latest php version, which is php8.

isconavarrete oh man! You are right, there is no such thing like a PHP 6. Thank you so much. Like you I think it's better to install the last version. I will go with that option. Thank you so much Master!

    Probably my biggest task at work this year was upgrading a legacy app from 5.6 to 8.1. After toying around with trying to do incremental version upgrades, I ended up doing it in one fell swoop, in part because the the Dockerized architecture we use and not wanting to have to jump around with different Docker images and such.

    In 20/20 hindsight, a more incremental approach might have been better, at least for the guy who did the code review of my Github pull request that had literally hundreds of changed files. 🙂 (Okay, a big chunk of those were when I just pulled down the latest stable version of SimpleSAMLphp to replace the php 5 version we had...and we didn't use compose or anything, just stuck the code into a directory of the application.)

    It ended up being a big task, but the result is better performance (and along with the major Apache update, better security), and probably at least a few dozen files completely removed as I came to realize which ones were no longer in use.

    Hmm...that reminds me, I should remember to check if there's an official, stable PHP 8.2 Docker image yet that meets what we need.

    Very true, but there are many RC 8.2 docker images available as long you're not planning for production...

    Weedpacket There isn't a stable PHP 8.2 yet.

    Heh...I just remembered back around May or so that there were 8.2 "release candidates", and just kind of assumed (for some reason) it must've been released by now. Looks like current plan is for Nov.

      maxxd as long you're not planning for production...

      Which kind of precludes "official, stable".

        Write a Reply...