Discover Centmin Mod today
Register Now

PHP PHP 8.1.8 and 8.0.21 Released

Discussion in 'Nginx and PHP-FPM news & discussions' started by buik, Jul 6, 2022.

  1. buik

    buik “The best traveler is one without a camera.”

    2,044
    527
    113
    Apr 29, 2016
    Flanders
    Ratings:
    +1,691
    Local Time:
    9:27 PM
    PHP 8.1.8 and 8.0.21 Released
    Source: Tags · php/php-src


    PHP 7.4 loses its official support within a few months and is currently in the security only branch. So don't expect any official updates from this version. Unless later, safety related.

    If you are still using version 7.4. Now is the time to upgrade your software and plan an upgrade to a newer version. Unless you are using backport fixes from @eva2000, or PHP packaged at Red Hat, Debian, Ubuntu etc.
     
    Last edited: Jul 6, 2022
  2. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    5:27 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
  3. buik

    buik “The best traveler is one without a camera.”

    2,044
    527
    113
    Apr 29, 2016
    Flanders
    Ratings:
    +1,691
    Local Time:
    9:27 PM
    @eva2000 Can you adjust the script because as of right now it is looking at github.com/php/php-src/tags for new versions but downloading it at PHP: Hypertext Preprocessor.

    Which, like now, creates a mismatch.
    After all, the latest PHP is not yet available on their php.net CDN but only on GitHub, so the update fails.

    Perhaps you can check the latest PHP version at php.net.

     
  4. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    5:27 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Usually, php-src github repo is very close time wise to php.net CDN. You're sure it's failing due to PHP 8.1.8 not being available? php.net may not list 8.1.8 but cdn may have it before then

    Code (Text):
    curl -I https://www.php.net/distributions/php-8.1.8.tar.xz
    HTTP/2 200
    server: myracloud
    date: Wed, 06 Jul 2022 17:29:39 GMT
    content-type: application/octet-stream
    content-length: 11722100
    last-modified: Wed, 06 Jul 2022 15:40:21 GMT
    etag: "62c5ace5-b2dd74"
    x-cdn: 1
    accept-ranges: bytes
    

    I could add a check to see if new PHP version is available in php.net CDN and only then report it as available
     
  5. buik

    buik “The best traveler is one without a camera.”

    2,044
    527
    113
    Apr 29, 2016
    Flanders
    Ratings:
    +1,691
    Local Time:
    9:27 PM
    Yup sure. Seems as the CDN servers aren't synced right now.
    The PHP 8.1.8 file that was downloaded, is the 404 not found file.

    Hash check of the downloaded file could be a solution. Or size check > a few bits.
    As the 404 Not Found file is only a few KB in size.
     
    Last edited: Jul 7, 2022
  6. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    5:27 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+