PHP 8.6 Codex Changelog

Newly added Improvements Changed Deprecations Removals
INI Directives 1 3
Constants 34 3 1
Classes 23 1
Functions 10 17 16
Enums 10
Interfaces 1

Newly added

INI Directives

Global

Constants

curl

mysqli

openssl

pgsql

sockets

standard

Classes

ext-date

ext-intl

ext-openssl

Core

ext-uri

Functions

ext-gmp

ext-intl

ext-mysqli

Core

Enums

Core

ext-uri

Interfaces

Core

Changed

INI Directives

Global

Classes

ext-soap

  • SoapClient

    Cloning class objects is no longer allowed

Constants

gd

Improvements

Functions

ext-json

ext-ldap

  • ldap_free_result

    Return type changed: bool to true

    - ldap_free_result(LDAP\Result $result): bool
    + ldap_free_result(LDAP\Result $result): true

ext-openssl

  • openssl_verify
    • Optional parameter added - #6: int $salt_length = OPENSSL_RSA_PSS_SALTLEN_AUTO
     openssl_verify(
         string $data,
         string $signature,
         $public_key,
         string|int $algorithm = OPENSSL_ALGO_SHA1,
    -    int $padding = 0
    +    int $padding = 0,
    +    int $salt_length = OPENSSL_RSA_PSS_SALTLEN_AUTO
       ): int|false
  • openssl_sign
    • Optional parameter added - #6: int $salt_length = OPENSSL_RSA_PSS_SALTLEN_AUTO
     openssl_sign(
         string $data,
         &$signature,
         $private_key,
         string|int $algorithm = OPENSSL_ALGO_SHA1,
    -    int $padding = 0
    +    int $padding = 0,
    +    int $salt_length = OPENSSL_RSA_PSS_SALTLEN_AUTO
       ): bool
  • openssl_encrypt

    Parameter type changed for parameter #7 ($aad): string to ?string

      openssl_encrypt(
          string $data,
          string $cipher_algo,
          string $passphrase,
          int $options = 0,
          string $iv = "",
          &$tag = null,
    -     string $aad = "",
    +     ?string $aad = "",
          int $tag_length = 16
        ): string|false
  • openssl_decrypt

    Parameter type changed for parameter #7 ($aad): string to ?string

      openssl_decrypt(
          string $data,
          string $cipher_algo,
          string $passphrase,
          int $options = 0,
          string $iv = "",
          ?string $tag = null,
    -     string $aad = ""
    +     ?string $aad = ""
        ): string|false

ext-sockets

  • socket_addrinfo_lookup
    • Optional parameter added - #4: &$error_code = null
     socket_addrinfo_lookup(
         string $host,
         ?string $service = null,
    -    array $hints = []
    +    array $hints = [],
    +    &$error_code = null
       ): array|false

Core

Deprecations

Functions

ext-mbstring

Constants

mbstring

  • MB_ONIGURUMA_VERSION

    Constant deprecated

    var_dump(MB_ONIGURUMA_VERSION);
    // 6.9.9
    Constant MB_ONIGURUMA_VERSION is deprecated since 8.6, because the underlying library is no longer maintained
Subscribe to PHP.Watch newsletter for monthly updates

You will receive an email on last Wednesday of every month and on major PHP releases with new articles related to PHP, upcoming changes, new features and what's changing in the language. No marketing emails, no selling of your contacts, no click-tracking, and one-click instant unsubscribe from any email you receive.