PHP 8.4 will be DOM-compliant

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • Turns out that PHP's current DOM implementation is rather buggy. PHP 8.4 tries to fix it.
    Links from the video:
    - The HTML 5 RFC video: • PHP 8.4 adds HTML 5 su...
    - Read the full RFC: wiki.php.net/r...
    - PHP Version stats: stitcher.io/bl...
    - The stream with Larry where we talked about internals: • Let's talk about prope...
    #php #whatsnew #webdev

Комментарии • 10

  • @lostcarpark
    @lostcarpark Месяц назад +1

    I looked at the PHP DOM extension for a project, but didn't end up using it. I can't remember if the buggy implementation was part of the reason. This looks like a really clean way of tidying it up, and I'll definitely give it another look.

  • @expirationstrategist
    @expirationstrategist Месяц назад +4

    Drupal community is nicely showing that it is possible to be up do date: PHP 8.3 has been supported in Drupal 10 since the 10.2.0 release, and Drupal 10 installs recommend at least PHP 8.2 or higher. Drupal 11.0 will require PHP 8.3 - I am glad that they are pushing for new versions and also that they are up to date with the latest Symfony versions

    • @lostcarpark
      @lostcarpark Месяц назад +1

      Yes, I love how Drupal is on the cutting edge of PHP, and by core requiring a reasonably recent version, we're seeing PHP8 features used in modules, resulting in cleaner code.

  • @lostcarpark
    @lostcarpark Месяц назад +1

    Just regarding PHP supported versions, I do feel that PHP7 fell off the end of support cliff a little too fast. I would like to see the last version of each major have "long term support" releases for a couple of extra years to give people who have trouble moving to the new major a softer landing. I think it's good that they've moved to two years of security fixes for each minor release, but for the very last minor of a major, I would like to see that extended to 3 or 4 years.
    For example, if PHP7.4 had 2 years of full support followed by 3 years of security fixes, that would have given it a 5 year total lifespan. Obviously that needs to be balanced as maintainers don't want to spend all their time fixing old versions.
    And perhaps the point is moot, since I see there are far more installs of 7.1 and 7.2 than 7.4, and there are still 5.2 servers around, which suggests it's not the PHP7 end of life that is preventing people from upgrading.

  • @cultureofnepal2024
    @cultureofnepal2024 Месяц назад +5

    Wordpress community needs to force an upgrade of the latest PHP version.

    • @user-ek8hs5bg2y
      @user-ek8hs5bg2y Месяц назад

      WordPress is a mess. Nightmare and liquid pain to work with. It's already a react based cms. Hf gl

    • @lostcarpark
      @lostcarpark Месяц назад +2

      Totally. Wordpress supports such a wide range, but it means it can't actually use newer features. Would love to see them require a newer version, and start to clean up some of the older code.

  • @accessibleguidance
    @accessibleguidance Месяц назад

    Suppose a lot of people start passing HTML markup instead of JSON between server and client this PHP legacy DOM compliance would have to be completed.

  • @accessibleguidance
    @accessibleguidance Месяц назад

    Dom notations might be referring to html comments

  • @rikschaaf
    @rikschaaf Месяц назад +1

    Insert xkcd: Workflow meme