Home » Releases » 8.1 » 8.1.34 »

PHP 8.1.20

PHP 8.1 is no longer officially supported by the PHP project.

Official support refers to that provided direct by the PHP Project.

If you install PHP via third-party packages, support timelines may be different. Please read the Release Support Policy for more information.

The latest release of PHP 8.1 is 8.1.34 which includes important security patches.

Source Code

Change Log

  • core

    • Fixed bug GH-9068 (Conditional jump or move depends on uninitialised value(s)).
      nielsdos
    • Fixed bug GH-11189 (Exceeding memory limit in zend_hash_do_resize leaves the array in an invalid state).
      Bob
    • Fixed bug GH-11222 (foreach by-ref may jump over keys during a rehash).
      Bob
  • date

    • Fixed bug GH-11281 (DateTimeZone::getName() does not include seconds in offset).
      nielsdos
  • exif

    • Fixed bug GH-10834 (exif_read_data() cannot read smaller stream wrapper chunk sizes).
      nielsdos
  • fpm

    • Fixed bug GH-10461 (PHP-FPM segfault due to after free usage of child->ev_std(out|err)).
      Jakub Zelenka
    • Fixed bug #64539 (FPM status page: query_string not properly JSON encoded).
      Jakub Zelenka
    • Fixed memory leak for invalid primary script file handle.
      Jakub Zelenka
  • hash

    • Fixed bug GH-11180 (hash_file() appears to be restricted to 3 arguments).
      nielsdos
  • libxml

    • Fixed bug GH-11160 (Few tests failed building with new libxml 2.11.0).
      nielsdos
  • opcache

    • Fixed bug GH-11134 (Incorrect match default branch optimization).
      ilutov
    • Fixed too wide OR and AND range inference.
      nielsdos
    • Fixed bug GH-11245 (In some specific cases SWITCH with one default statement will cause segfault).
      nielsdos
  • pgsql

    • Fixed parameter parsing of pg_lo_export().
      kocsismate
  • phar

    • Fixed bug GH-11099 (Generating phar.php during cross-compile can't be done).
      peter279k
  • soap

    • Fixed bug GHSA-76gg-c692-v2mw (Missing error check and insufficient random bytes in HTTP Digest authentication for SOAP). (CVE-2023-3247)
      nielsdos
      timwolla
    • Fixed bug GH-8426 (make test fail while soap extension build).
      nielsdos
  • spl

    • Fixed bug GH-11178 (Segmentation fault in spl_array_it_get_current_data (PHP 8.1.18)).
      nielsdos
  • standard

    • Fixed bug GH-11138 (move_uploaded_file() emits open_basedir warning for source file).
      ilutov
    • Fixed bug GH-11274 (POST/PATCH request switches to GET after a HTTP 308 redirect).
      nielsdos
  • streams

    • Fixed bug GH-10031 ([Stream] STREAM_NOTIFY_PROGRESS over HTTP emitted irregularly for last chunk of data).
      nielsdos
    • Fixed bug GH-11175 (Stream Socket Timeout).
      nielsdos
    • Fixed bug GH-11177 (ASAN UndefinedBehaviorSanitizer when timeout = -1 passed to stream_socket_accept/stream_socket_client).
      nielsdos

PHP 8.1


  Represents a security release