PHP 7.2 Codex Changelog

Newly added Improvements Changed Deprecations Removals
INI Directives 1 5 4
Extensions 1 1
Constants 154 4 39
Functions 113 6 2 5 32
Classes 2 8
Interfaces 1

Newly added

INI Directives

Global

Extensions

Global

Constants

Core

fileinfo

gd

json

ldap

mysqli

pcntl

pcre

sockets

sodium

standard

zlib

Functions

ext-ftp

ext-gd

ext-hash

ext-ldap

ext-mbstring

ext-oci8

ext-openssl

ext-sockets

ext-sodium

ext-SPL

Core

ext-zlib

Classes

ext-hash

ext-sodium

Removals

INI Directives

Global

Extensions

Global

Functions

ext-mcrypt

Constants

mcrypt

Changed

INI Directives

Global

Interfaces

Core

Classes

ext-dom

ext-PDO

  • PDO

    Cloning class objects is no longer allowed

  • PDOStatement

    Cloning class objects is no longer allowed

ext-SPL

ext-zip

Functions

Core

Constants

mysqli

standard

Improvements

Functions

ext-bcmath

  • bcmod
    • Optional parameter added - #3: $scale
    -bcmod($left_operand, $right_operand)
    +bcmod(
    +    $left_operand,
    +    $right_operand,
    +    $scale
    +  )

ext-date

  • date_create_from_format

    Parameter type added for parameter #3 ($object): DateTimeZone or NULL

      date_create_from_format(
          $format,
          $time,
    -     $object
    +     DateTimeZone or NULL $object
        )
  • date_create_immutable_from_format

    Parameter type added for parameter #3 ($object): DateTimeZone or NULL

      date_create_immutable_from_format(
          $format,
          $time,
    -     $object
    +     DateTimeZone or NULL $object
        )

ext-mbstring

  • mb_decode_numericentity
    • Optional parameter added - #4: $is_hex
     mb_decode_numericentity(
         $string,
         $convmap,
    -    $encoding
    +    $encoding,
    +    $is_hex
       )

ext-mysqli

  • mysqli_get_client_info

    No longer accepts any parameters

    - mysqli_get_client_info($link)
    + mysqli_get_client_info()

ext-openssl

  • openssl_pkcs7_verify
    • Optional parameter added - #7: $pk7
     openssl_pkcs7_verify(
         $filename,
         $flags,
         $signerscerts,
         $cainfo,
         $extracerts,
    -    $content
    +    $content,
    +    $pk7
       )

Deprecations

Functions

Core

ext-exif

ext-gd

ext-gmp

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.