Unofficial Hacker News companion — get notified on comment replies, and more.

Elephant in the Server Room: >50% of WordPress Sites Run PHP That's EOL by Jan (opens external site)

284 points by xadz 3 days ago | adamgreenough.net | 132 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (5)

  1. I’m unconvinced that this is enough in general.

    I used to maintain several npm packages. As a general rule, I followed the nodejs release schedule. When nodejs versions stopped being officially supported, I stopped supporting them in my packages too. It’s nice to be able to use modern JS features. And nodejs has long, well documented support timelines, including LTS versions.

    But it didn’t stop people filing bugs on my packages due to incompatibilities with ancient nodejs versions. One person replied back that they were using the latest version of node that was in their OS package repository. Fully 10 years old or something at that point - and already past its official EOL date. They didn’t have a reasonable path to update. And I’m not interested in supporting ancient software forever, for fun. I told them to use an old version - but it’s got known bugs.

    Unless Debian or whatever is going to mirror all of npm, I’m not sure what they expect people to do. For well maintained projects like php and node, you’re generally gonna have fewer problems using modern versions.

    https://nodejs.org/en/about/previous-releases

    Replies (2)
    1. Yeah, it's an issue with debian in particular. Mainly because they have such a long release cycle and they like to lock in to major versions of software packages rather than updating them. Currently node 20 is the latest version and the next version of Debian is due out some time next year.

      Seems like by having such long release cycles they are creating maintenance headaches for themselves.

    2. I don't know how NPM deals with these things, but Composer (PHP's NPM equivalent) will loudly proclaim versions are vulnerable even if there are no upgrade paths.

      Other people's old runtimes aren't your problem as an OSS maintainer, of course. However, WordPress supports PHP 7.4 for all recent versions. Other projects and plugins might not be so generous, but whether or not this is a problem will depend on a case-by-case basis.

      Debian doesn't vendor all NPM packages, but they do vendor hundreds of them: https://pkgs.org/search/?q=node-

      Replies (1)
      1. Why? Are they doing that by hand? There’s over 4 million packages in npm. “Hundreds” gives you about 0.01% of npm. For any given package, that means you have a 1/10 000 chance of finding it in apt. I hardly see the point.
        Replies (1)
        1. Because someone decided to add one or more projects based on the digital quicksand that is NPM to the official repositories, and Debian wanted to include it in their repositories. They need to maintain all dependencies for the support period of that specific release.