Community Fixes for ZendPHP 8.2.5 Now Available

  • - 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).
    •   . Re-add some CTE functions that were removed from being CTE by a mistake.
    •   . Remove CTE flag from array_diff_ukey(), which was added by mistake.
    •   . 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-10747 (Private and protected properties in serialized Date* objects throw).
  • - 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). 
  • - 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().
  • - PDO ODBC:
    •   . Fixed missing and inconsistent error checks on SQLAllocHandle. 
  • - 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-10907 (Unable to serialize processed SplFixedArrays in PHP 8.2.4).
    •   . 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().
    •  

Community Fixes for ZendPHP 8.1.18 Now Available

  • - 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. (David Carlier)
    •   . 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().

 

ZendPHP for Alpine Linux Now Available

We have provided ZendPHP to Alpine Linux 3.16 via a custom Alpine Linux package repository, and compiled our packages to mimic the official PHP packages provided by Alpine. We provide packages for both x86_64 and arm64 architectures. 

Installing ZendPHP in Alpine Linux

We recommend using the zendphpctl script for installing and managing ZendPHP on Alpine. 

The typical workflow is:

  • zendphpctl repo install 
  • zendphpctl php install 8.1 
  • zendphpctl fpm install 
  • zendphpctl ext install ...

We also provide instructions for manually installing ZendPHP on Alpine. These detail how to add the repository, steps needed for authentication/authorization with the repository, and how to install packages.

We also detail how to compile non-standard or custom PHP extensions for the distribution. 

ZendPHP Alpine Linux Docker Images

ZendPHP Alpine Linux Docker images are available at the Zend container registry at cr.zend.com using the name template: cr.zend.com/zendphp/{PHP_VERSION}:alpine-3.16-(cli|fpm|apache)(-arm64).