• When is wordpress going to drop PHP 5.2 minimum requirement, this is now starting to become a big issue for support groups and plugin developers.

    As you’re aware, many plugins that use payment gateways have no control over the 3rd party gateways, and many gateway libraries lately are using PHP 5.3 code, this means those with PHP 5.2 servers are having issues, it makes no sense for us to have to rewrite 3rd party gateway providers libraries to be 5.2 compatible, not to mention the time involved in doing so.

    Yes, we always recommend to the user that they ask their webhost to upgrade to 5.2, but as wordpress supports 5.2 itself, we do try to follow the minimum wordpress requirements for compatibility.

    I feel that plugin developers and support staff should ideally just say enough is enough and stop supporting PHP 5.2 in their code (maybe that would force the issue for the wp devs)

    Could we get a consensus on this and have the minimum requirement raised to PHP 5.3 soon, maybe in the next few releases.

Viewing 7 replies - 1 through 7 (of 7 total)
  • I feel that plugin developers and support staff should ideally just say enough is enough and stop supporting PHP 5.2 in their code (maybe that would force the issue for the wp devs)

    Could we get a consensus on this and have the minimum requirement raised to PHP 5.3 soon, maybe in the next few releases.

    To continue to be as useable as possible for as many users as possible, I would suggest WordPress devs simply (continue to?) keep pace with whatever minimum version of PHP is most-commonly in place at the majority of hosts. In other words: Force the hosts, if you wish, but not the WordPress devs.

    PHP 5.2 is EOL. Why should WordPress devs support something that the PHP devs aren’t even supporting anymore?

    In other words: Force the hosts,

    How is anyone going to do that? At this point if they haven’t upgraded its out of sheer incompetence. They’re not going to upgrade unless developers force them to do so.

    My suggestion: Remove support for PHP 5.2 and if a user complains tell them to change hosts. Hosting companies will upgrade real damn fast as soon as they see their numbers drop.

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    My suggestion: Remove support for PHP 5.2 and if a user complains tell them to change hosts. Hosting companies will upgrade real damn fast as soon as they see their numbers drop.

    It doesn’t really work that way.

    Don’t make the mistake of thinking that the minimum requirements is necessarily all the leverage WordPress has in this respect. WordPress currently powers approximately 25% of all websites. That’s a heck of a lot of leverage, and yes, hosts very much try to keep their users happy, and since lots of those users use WordPress, then they very much try to be compatible.

    But using our users as some kind of leverage to force the issue is not a good way to behave. It alienates hosting companies, drops support for some subset of users, and generally isn’t how to keep that sustainable growth thing going.

    We want people to upgrade WordPress. If we drop support for their hosting systems, then they won’t switch hosting, they’ll just not upgrade WordPress. That’s a real problem.

    Not we don’t convince hosts in other ways. Simply pointing out things like PHP 7.0 is the fastest one yet, or the fact that pretty much every newer version of PHP like 5.3 and 5.4 have great speed and performance improvements is usually enough to convince hosts to start updating.

    And sometimes hosts take a layered approach, with all newer servers they deploy having updated PHP versions, while leaving those older servers on the versions of PHP they have always been running, then migrating the users to newer servers one at a time.

    Anyway, we are having an effect. The number of PHP 5.2 installs is down to around 13% (See https://wordpress.org/about/stats/ ), but understand that that still translates to many millions of installations. Dropping support for a few million people is not a good idea, no matter what the motivations are.

    Realistically, supporting PHP 5.2 isn’t holding back WordPress. There’s no new features in PHP that WordPress relies on or really needs. Being backwards compatible is one of WordPress’ core philosophies, and it will likely stay that way until there is some really, really pressing reason to up-the-ante. That said, yes, pressuring hosts to update happens continuously, and progress, while slow, does occur.

    If you as an author want to write a plugin or a theme that does not support PHP 5.2, then that is perfectly acceptable. I suggest creating a 5.2 compatible main file (for a plugin) or a functions.php file (for a theme) which checks for the PHP version first, and prevents loading the rest of the plugin/theme on 5.2 systems. This is easy to do and prevents your plugin from breaking sites, while also offering you an avenue to tell the user what the problem is and how they can fix it by asking their hosting service to upgrade them.

    Edit for some additional info: We actually have better stats than what we display there. For WordPress 4.2 installs, the number of sites running PHP 5.2 is much lower, around 8%. The current most popular PHP versions, with over 75% of the installs, is 5.3 and 5.4. We track these numbers in great detail, and we are having an effect. πŸ™‚

    I really don’t see why newer versions of WordPress have to support PHP 5.2. WordPress keeps providing security updates for a number of old versions anyway, so it’s not like users’ sites running on PHP 5.2 will suddenly stop working.

    I know WordPress doesn’t follow Semantic Version but technically that’s the idea of major versions – that you are able to introduce API breaking changes.

    I think going from 3.9 to 4.0 would have been the ideal time to drop PHP 5.2 support. Then you’d just keep providing security updates to 3.9 users (e.g. 3.9.1, 3.9.2 etc.) and when they try updating to 4.0, you would politely let them know that they have to upgrade their PHP version. That takes a single click on most shared hosting plans. Also, I doubt anyone who has the knowledge to manage a non-shared server, would have any trouble updating their PHP version.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    I really don’t see why newer versions of WordPress have to support PHP 5.2. WordPress keeps providing security updates for a number of old versions anyway, so it’s not like users’ sites running on PHP 5.2 will suddenly stop working.

    Because there will be a time when a security fix cannot be backported and, from that moment on, we’re the cretins who made them vulnerable for no reason other than our own ego.

    As of yet, there has not been a sufficient technical reason to drop support for 5.2. There’s nothing in 5.6 or 7 we can’t do and remain compatible at this time. Eventually, that too will change.

    It’s no longer on our requirements – https://wordpress.org/about/requirements/ – but it still runs.

    Ipstenu, I think there is a great technical reason to move the PHP requirement up to 5.3, at least – namely – autoloading with namespaces. I don’t think there’s any doubt that autoloading and Composer are the two best things to happen to PHP in years (never mind PHP 7.0). Honestly, I don’t see WP core ever getting modernized from its current architecture without a proper autoloading mechanism in place.

    Also, that link you’ve posted, lists the recommended versions of php and mysql, not the required ones.

    FYI, I’m still receiving user feedback about errors in PHP 5.2 from users of my plugins.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘When will wordpress drop PHP 5.2 requirement’ is closed to new replies.