PHP Release 8.1.18


PHP 8.1.18 Release Announcement

The PHP development team announces the immediate availability of PHP 8.1.18. This is a bug fix release.

All PHP 8.1 users are encouraged to upgrade to this version.

For source downloads of PHP 8.1.18 please visit our downloads page, Windows source and binaries can be found on windows.php.net/download/. The list of changes is recorded in the ChangeLog.

Source Code
PHP 8.1.18 (tar.gz)
SHA256: 8b6b12902e7d6bdf68668acc067b4d75a3c504722f768098c5f80c7d7bfd2563
PHP 8.1.18 (tar.bz2)
SHA256: d2ac30d6b574fca594fe0cc01c0693e23585b27443e342b0aab07274cde4416e
PHP 8.1.18 (tar.xz)
SHA256: f3553370f8ba42729a9ce75eed17a2111d32433a43b615694f6a571b8bad0e39
Change Logs
core
  • Added optional support for max_execution_time in ZTS/Linux builds
  • Fixed use-after-free in recursive AST evaluation.
  • Fixed bug GH-8646 (Memory leak PHP FPM 8.1).
  • Fixed bug GH-10801 (Named arguments in CTE functions cause a segfault).
  • Fixed bug GH-8789 (PHP 8.0.20 (ZTS) zend_signal_handler_defer crashes on apache).
  • Fixed bug GH-10015 (zend_signal_handler_defer crashes on apache shutdown).
  • Fixed bug GH-10810 (Fix NUL byte terminating Exception::__toString()).
  • Fix potential memory corruption when mixing __callStatic() and FFI.
date
  • Fixed bug GH-10583 (DateTime modify with tz pattern should not update linked timezone).
fpm
  • Fixed bug GH-10611 (fpm_env_init_main leaks environ).
  • Destroy file_handle in fpm_main.
  • Fixed bug #74129 (Incorrect SCRIPT_NAME with apache ProxyPassMatch when spaces are in path).
ftp
  • Propagate success status of ftp_close().
  • Fixed bug GH-10521 (ftp_get/ftp_nb_get resumepos offset is maximum 10GB).
imap
  • Fix build failure with Clang 16.
mysqlnd
  • Fixed bug GH-8979 (Possible Memory Leak with SSL-enabled MySQL connections).
opcache
  • Fixed build for macOS to cater with pkg-config settings.
  • Fixed bug GH-8065 (opcache.consistency_checks > 0 causes segfaults in PHP >= 8.1.5 in fpm context).
openssl
  • Add missing error checks on file writing functions.
pdo firebird
  • Fixed bug GH-10908 (Bus error with PDO Firebird on RPI with 64 bit kernel and 32 bit userland).
pdo odbc
  • Fixed missing and inconsistent error checks on SQLAllocHandle.
phar
  • Fixed bug GH-10766 (PharData archive created with Phar::Zip format does not keep files metadata (datetime)).
  • Add missing error checks on EVP_MD_CTX_create() and EVP_VerifyInit().
pgsql
  • Fixed typo in the array returned from pg_meta_data (extended mode).
spl
  • Fixed bug GH-10519 (Array Data Address Reference Issue).
  • Fixed bug GH-10844 (ArrayIterator allows modification of readonly props).
standard
  • Fixed bug GH-10885 (stream_socket_server context leaks).
  • Fixed bug GH-10052 (Browscap crashes PHP 8.1.12 on request shutdown (apache2)).
  • Fixed oss-fuzz #57392 (Buffer-overflow in php_fgetcsv() with \0 delimiter and enclosure).
  • Fixed undefined behaviour in unpack().
To Top