PHP 8.1 Codex Changelog

Newly added Improvements Changed Deprecations Removals
INI Directives 2 1 2
Functions 25 296 11
Constants 36 1 11
Interfaces 2
Attributes 1
Classes 20 2

Deprecations

INI Directives

Global

Functions

ext-date

ext-hash

ext-odbc

Core

Constants

filter

  • FILTER_SANITIZE_STRIPPED

    Constant deprecated

    var_dump(FILTER_SANITIZE_STRIPPED);
    // 513
    Constant FILTER_SANITIZE_STRIPPED is deprecated
  • FILTER_SANITIZE_STRING

    Constant deprecated

    var_dump(FILTER_SANITIZE_STRING);
    // 513
    Constant FILTER_SANITIZE_STRING is deprecated

imap

  • NIL

    Constant deprecated

    var_dump(NIL);
    // 0
    Constant NIL is deprecated

mysqli

  • var_dump(MYSQLI_SERVER_QUERY_NO_GOOD_INDEX_USED);
    // 16
    Constant MYSQLI_SERVER_QUERY_NO_GOOD_INDEX_USED is deprecated
  • var_dump(MYSQLI_SERVER_QUERY_NO_INDEX_USED);
    // 32
    Constant MYSQLI_SERVER_QUERY_NO_INDEX_USED is deprecated
  • MYSQLI_SERVER_PS_OUT_PARAMS

    Constant deprecated

    var_dump(MYSQLI_SERVER_PS_OUT_PARAMS);
    // 4096
    Constant MYSQLI_SERVER_PS_OUT_PARAMS is deprecated
  • MYSQLI_SERVER_QUERY_WAS_SLOW

    Constant deprecated

    var_dump(MYSQLI_SERVER_QUERY_WAS_SLOW);
    // 2048
    Constant MYSQLI_SERVER_QUERY_WAS_SLOW is deprecated
  • MYSQLI_NO_DATA

    Constant deprecated

    var_dump(MYSQLI_NO_DATA);
    // 100
    Constant MYSQLI_NO_DATA is deprecated
  • MYSQLI_DATA_TRUNCATED

    Constant deprecated

    var_dump(MYSQLI_DATA_TRUNCATED);
    // 101
    Constant MYSQLI_DATA_TRUNCATED is deprecated

standard

  • FILE_TEXT

    Constant deprecated

    var_dump(FILE_TEXT);
    // 0
    Constant FILE_TEXT is deprecated
  • FILE_BINARY

    Constant deprecated

    var_dump(FILE_BINARY);
    // 0
    Constant FILE_BINARY is deprecated

Removals

INI Directives

Global

Newly added

INI Directives

Global

Constants

curl

gd

hash

json

mysqli

sockets

sodium

standard

tokenizer

Interfaces

Core

Attributes

Core

Classes

Core

ext-curl

ext-ftp

ext-gd

ext-imap

ext-intl

ext-ldap

ext-pgsql

ext-pspell

ext-Reflection

Functions

Core

ext-gd

ext-mysqli

ext-sodium

Core

Improvements

Functions

ext-bz2

  • bzerrstr

    Return type changed: string|false to string

    - bzerrstr($bz): string|false
    + bzerrstr($bz): string
  • bzerrno

    Return type changed: int|false to int

    - bzerrno($bz): int|false
    + bzerrno($bz): int
  • bzerror

    Return type changed: array|false to array

    - bzerror($bz): array|false
    + bzerror($bz): array

Core

  • define

    Parameter type added for parameter #2 ($value): mixed

      define(
          string $constant_name,
    -     $value,
    +     mixed $value,
          bool $case_insensitive = false
        ): bool

ext-fileinfo

  • finfo_close

    Parameter type added for parameter #1 ($finfo): finfo

    - finfo_close($finfo): bool
    + finfo_close(finfo $finfo): bool
  • finfo_set_flags

    Parameter type added for parameter #1 ($finfo): finfo

    - finfo_set_flags($finfo, int $flags): bool
    + finfo_set_flags(finfo $finfo, int $flags): bool
  • finfo_open

    Return type added: finfo|false

    - finfo_open(int $flags = FILEINFO_NONE, ?string $magic_database = null)
    + finfo_open(int $flags = FILEINFO_NONE, ?string $magic_database = null): finfo|false
  • finfo_file

    Parameter type added for parameter #1 ($finfo): finfo

      finfo_file(
    -     $finfo,
    +     finfo $finfo,
          string $filename,
          int $flags = FILEINFO_NONE,
          $context = null
        ): string|false
  • finfo_buffer

    Parameter type added for parameter #1 ($finfo): finfo

      finfo_buffer(
    -     $finfo,
    +     finfo $finfo,
          string $string,
          int $flags = FILEINFO_NONE,
          $context = null
        ): string|false

ext-ftp

  • ftp_nb_fget

    Parameter type added for parameter #1 ($ftp): FTP\Connection

      ftp_nb_fget(
    -     $ftp,
    +     FTP\Connection $ftp,
          $stream,
          string $remote_filename,
          int $mode = FTP_BINARY,
          int $offset = 0
        ): int
  • ftp_nb_fput

    Parameter type added for parameter #1 ($ftp): FTP\Connection

      ftp_nb_fput(
    -     $ftp,
    +     FTP\Connection $ftp,
          string $remote_filename,
          $stream,
          int $mode = FTP_BINARY,
          int $offset = 0
        ): int
  • ftp_nb_get
    • Return type changed: int to int|false
    • Parameter type added for parameter #1 ($ftp): FTP\Connection
      ftp_nb_get(
    -     $ftp,
    +     FTP\Connection $ftp,
          string $local_filename,
          string $remote_filename,
          int $mode = FTP_BINARY,
          int $offset = 0
    -   ): int
    +   ): int|false
  • ftp_nb_put

    Parameter type added for parameter #1 ($ftp): FTP\Connection

      ftp_nb_put(
    -     $ftp,
    +     FTP\Connection $ftp,
          string $remote_filename,
          string $local_filename,
          int $mode = FTP_BINARY,
          int $offset = 0
        ): int|false
  • ftp_nlist

    Parameter type added for parameter #1 ($ftp): FTP\Connection

    - ftp_nlist($ftp, string $directory): array|false
    + ftp_nlist(FTP\Connection $ftp, string $directory): array|false
  • ftp_pasv

    Parameter type added for parameter #1 ($ftp): FTP\Connection

    - ftp_pasv($ftp, bool $enable): bool
    + ftp_pasv(FTP\Connection $ftp, bool $enable): bool
  • ftp_put

    Parameter type added for parameter #1 ($ftp): FTP\Connection

      ftp_put(
    -     $ftp,
    +     FTP\Connection $ftp,
          string $remote_filename,
          string $local_filename,
          int $mode = FTP_BINARY,
          int $offset = 0
        ): bool
  • ftp_pwd

    Parameter type added for parameter #1 ($ftp): FTP\Connection

    - ftp_pwd($ftp): string|false
    + ftp_pwd(FTP\Connection $ftp): string|false
  • ftp_quit

    Parameter type added for parameter #1 ($ftp): FTP\Connection

    - ftp_quit($ftp): bool
    + ftp_quit(FTP\Connection $ftp): bool
  • ftp_raw

    Parameter type added for parameter #1 ($ftp): FTP\Connection

    - ftp_raw($ftp, string $command): ?array
    + ftp_raw(FTP\Connection $ftp, string $command): ?array
  • ftp_rawlist

    Parameter type added for parameter #1 ($ftp): FTP\Connection

      ftp_rawlist(
    -     $ftp,
    +     FTP\Connection $ftp,
          string $directory,
          bool $recursive = false
        ): array|false
  • ftp_rename

    Parameter type added for parameter #1 ($ftp): FTP\Connection

      ftp_rename(
    -     $ftp,
    +     FTP\Connection $ftp,
          string $from,
          string $to
        ): bool
  • ftp_rmdir

    Parameter type added for parameter #1 ($ftp): FTP\Connection

    - ftp_rmdir($ftp, string $directory): bool
    + ftp_rmdir(FTP\Connection $ftp, string $directory): bool
  • ftp_set_option

    Parameter type added for parameter #1 ($ftp): FTP\Connection

      ftp_set_option(
    -     $ftp,
    +     FTP\Connection $ftp,
          int $option,
          $value
        ): bool
  • ftp_site

    Parameter type added for parameter #1 ($ftp): FTP\Connection

    - ftp_site($ftp, string $command): bool
    + ftp_site(FTP\Connection $ftp, string $command): bool
  • ftp_size

    Parameter type added for parameter #1 ($ftp): FTP\Connection

    - ftp_size($ftp, string $filename): int
    + ftp_size(FTP\Connection $ftp, string $filename): int
  • ftp_ssl_connect

    Return type added: FTP\Connection|false

      ftp_ssl_connect(
          string $hostname,
          int $port = 21,
          int $timeout = 90
    -   )
    +   ): FTP\Connection|false
  • ftp_systype

    Parameter type added for parameter #1 ($ftp): FTP\Connection

    - ftp_systype($ftp): string|false
    + ftp_systype(FTP\Connection $ftp): string|false
  • ftp_delete

    Parameter type added for parameter #1 ($ftp): FTP\Connection

    - ftp_delete($ftp, string $filename): bool
    + ftp_delete(FTP\Connection $ftp, string $filename): bool
  • ftp_mlsd

    Parameter type added for parameter #1 ($ftp): FTP\Connection

    - ftp_mlsd($ftp, string $directory): array|false
    + ftp_mlsd(FTP\Connection $ftp, string $directory): array|false
  • ftp_alloc

    Parameter type added for parameter #1 ($ftp): FTP\Connection

      ftp_alloc(
    -     $ftp,
    +     FTP\Connection $ftp,
          int $size,
          &$response = null
        ): bool
  • ftp_append

    Parameter type added for parameter #1 ($ftp): FTP\Connection

      ftp_append(
    -     $ftp,
    +     FTP\Connection $ftp,
          string $remote_filename,
          string $local_filename,
          int $mode = FTP_BINARY
        ): bool
  • ftp_cdup

    Parameter type added for parameter #1 ($ftp): FTP\Connection

    - ftp_cdup($ftp): bool
    + ftp_cdup(FTP\Connection $ftp): bool
  • ftp_chdir

    Parameter type added for parameter #1 ($ftp): FTP\Connection

    - ftp_chdir($ftp, string $directory): bool
    + ftp_chdir(FTP\Connection $ftp, string $directory): bool
  • ftp_chmod

    Parameter type added for parameter #1 ($ftp): FTP\Connection

      ftp_chmod(
    -     $ftp,
    +     FTP\Connection $ftp,
          int $permissions,
          string $filename
        ): int|false
  • ftp_close

    Parameter type added for parameter #1 ($ftp): FTP\Connection

    - ftp_close($ftp): bool
    + ftp_close(FTP\Connection $ftp): bool
  • ftp_connect

    Return type added: FTP\Connection|false

      ftp_connect(
          string $hostname,
          int $port = 21,
          int $timeout = 90
    -   )
    +   ): FTP\Connection|false
  • ftp_exec

    Parameter type added for parameter #1 ($ftp): FTP\Connection

    - ftp_exec($ftp, string $command): bool
    + ftp_exec(FTP\Connection $ftp, string $command): bool
  • ftp_fput

    Parameter type added for parameter #1 ($ftp): FTP\Connection

      ftp_fput(
    -     $ftp,
    +     FTP\Connection $ftp,
          string $remote_filename,
          $stream,
          int $mode = FTP_BINARY,
          int $offset = 0
        ): bool
  • ftp_get

    Parameter type added for parameter #1 ($ftp): FTP\Connection

      ftp_get(
    -     $ftp,
    +     FTP\Connection $ftp,
          string $local_filename,
          string $remote_filename,
          int $mode = FTP_BINARY,
          int $offset = 0
        ): bool
  • ftp_get_option

    Parameter type added for parameter #1 ($ftp): FTP\Connection

    - ftp_get_option($ftp, int $option): int|bool
    + ftp_get_option(FTP\Connection $ftp, int $option): int|bool
  • ftp_login

    Parameter type added for parameter #1 ($ftp): FTP\Connection

      ftp_login(
    -     $ftp,
    +     FTP\Connection $ftp,
          string $username,
          string $password
        ): bool
  • ftp_mdtm

    Parameter type added for parameter #1 ($ftp): FTP\Connection

    - ftp_mdtm($ftp, string $filename): int
    + ftp_mdtm(FTP\Connection $ftp, string $filename): int
  • ftp_mkdir

    Parameter type added for parameter #1 ($ftp): FTP\Connection

    - ftp_mkdir($ftp, string $directory): string|false
    + ftp_mkdir(FTP\Connection $ftp, string $directory): string|false
  • ftp_nb_continue

    Parameter type added for parameter #1 ($ftp): FTP\Connection

    - ftp_nb_continue($ftp): int
    + ftp_nb_continue(FTP\Connection $ftp): int
  • ftp_fget

    Parameter type added for parameter #1 ($ftp): FTP\Connection

      ftp_fget(
    -     $ftp,
    +     FTP\Connection $ftp,
          $stream,
          string $remote_filename,
          int $mode = FTP_BINARY,
          int $offset = 0
        ): bool

ext-gd

  • imageloadfont

    Return type changed: int|false to GdFont|false

    - imageloadfont(string $filename): int|false
    + imageloadfont(string $filename): GdFont|false
  • imagechar

    Parameter type changed for parameter #2 ($font): int to GdFont|int

      imagechar(
          GdImage $image,
    -     int $font,
    +     GdFont|int $font,
          int $x,
          int $y,
          string $char,
          int $color
        ): bool
  • imagecharup

    Parameter type changed for parameter #2 ($font): int to GdFont|int

      imagecharup(
          GdImage $image,
    -     int $font,
    +     GdFont|int $font,
          int $x,
          int $y,
          string $char,
          int $color
        ): bool
  • imagestringup

    Parameter type changed for parameter #2 ($font): int to GdFont|int

      imagestringup(
          GdImage $image,
    -     int $font,
    +     GdFont|int $font,
          int $x,
          int $y,
          string $string,
          int $color
        ): bool
  • imagefontheight

    Parameter type changed for parameter #1 ($font): int to GdFont|int

    - imagefontheight(int $font): int
    + imagefontheight(GdFont|int $font): int
  • imagestring

    Parameter type changed for parameter #2 ($font): int to GdFont|int

      imagestring(
          GdImage $image,
    -     int $font,
    +     GdFont|int $font,
          int $x,
          int $y,
          string $string,
          int $color
        ): bool
  • imagefontwidth

    Parameter type changed for parameter #1 ($font): int to GdFont|int

    - imagefontwidth(int $font): int
    + imagefontwidth(GdFont|int $font): int

ext-hash

  • hash
    • Optional parameter added - #4: array $options = []
     hash(
         string $algo,
         string $data,
    -    bool $binary = false
    +    bool $binary = false,
    +    array $options = []
       ): string
  • hash_file
    • Optional parameter added - #4: array $options = []
     hash_file(
         string $algo,
         string $filename,
    -    bool $binary = false
    +    bool $binary = false,
    +    array $options = []
       ): string|false
  • hash_init
    • Optional parameter added - #4: array $options = []
     hash_init(
         string $algo,
         int $flags = 0,
    -    string $key = ""
    +    string $key = "",
    +    array $options = []
       ): HashContext
  • hash_pbkdf2
    • Optional parameter added - #7: array $options = []
     hash_pbkdf2(
         string $algo,
         string $password,
         string $salt,
         int $iterations,
         int $length = 0,
    -    bool $binary = false
    +    bool $binary = false,
    +    array $options = []
       ): string

ext-imap

  • imap_listmailbox

    Parameter type added for parameter #1 ($imap): IMAP\Connection

      imap_listmailbox(
    -     $imap,
    +     IMAP\Connection $imap,
          string $reference,
          string $pattern
        ): array|false
  • imap_renamemailbox

    Parameter type added for parameter #1 ($imap): IMAP\Connection

      imap_renamemailbox(
    -     $imap,
    +     IMAP\Connection $imap,
          string $from,
          string $to
        ): bool
  • imap_rename

    Parameter type added for parameter #1 ($imap): IMAP\Connection

      imap_rename(
    -     $imap,
    +     IMAP\Connection $imap,
          string $from,
          string $to
        ): bool
  • imap_ping

    Parameter type added for parameter #1 ($imap): IMAP\Connection

    - imap_ping($imap): bool
    + imap_ping(IMAP\Connection $imap): bool
  • imap_open

    Return type added: IMAP\Connection|false

      imap_open(
          string $mailbox,
          string $user,
          string $password,
          int $flags = 0,
          int $retries = 0,
          array $options = []
    -   )
    +   ): IMAP\Connection|false
  • imap_num_recent

    Parameter type added for parameter #1 ($imap): IMAP\Connection

    - imap_num_recent($imap): int
    + imap_num_recent(IMAP\Connection $imap): int
  • imap_reopen

    Parameter type added for parameter #1 ($imap): IMAP\Connection

      imap_reopen(
    -     $imap,
    +     IMAP\Connection $imap,
          string $mailbox,
          int $flags = 0,
          int $retries = 0
        ): bool
  • imap_msgno

    Parameter type added for parameter #1 ($imap): IMAP\Connection

    - imap_msgno($imap, int $message_uid): int
    + imap_msgno(IMAP\Connection $imap, int $message_uid): int
  • imap_mailboxmsginfo

    Parameter type added for parameter #1 ($imap): IMAP\Connection

    - imap_mailboxmsginfo($imap): stdClass
    + imap_mailboxmsginfo(IMAP\Connection $imap): stdClass
  • imap_mail_move

    Parameter type added for parameter #1 ($imap): IMAP\Connection

      imap_mail_move(
    -     $imap,
    +     IMAP\Connection $imap,
          string $message_nums,
          string $mailbox,
          int $flags = 0
        ): bool
  • imap_mail_copy

    Parameter type added for parameter #1 ($imap): IMAP\Connection

      imap_mail_copy(
    -     $imap,
    +     IMAP\Connection $imap,
          string $message_nums,
          string $mailbox,
          int $flags = 0
        ): bool
  • imap_lsub

    Parameter type added for parameter #1 ($imap): IMAP\Connection

      imap_lsub(
    -     $imap,
    +     IMAP\Connection $imap,
          string $reference,
          string $pattern
        ): array|false
  • imap_listsubscribed

    Parameter type added for parameter #1 ($imap): IMAP\Connection

      imap_listsubscribed(
    -     $imap,
    +     IMAP\Connection $imap,
          string $reference,
          string $pattern
        ): array|false
  • imap_listscan

    Parameter type added for parameter #1 ($imap): IMAP\Connection

      imap_listscan(
    -     $imap,
    +     IMAP\Connection $imap,
          string $reference,
          string $pattern,
          string $content
        ): array|false
  • imap_num_msg

    Parameter type added for parameter #1 ($imap): IMAP\Connection

    - imap_num_msg($imap): int|false
    + imap_num_msg(IMAP\Connection $imap): int|false
  • imap_savebody

    Parameter type added for parameter #1 ($imap): IMAP\Connection

      imap_savebody(
    -     $imap,
    +     IMAP\Connection $imap,
          $file,
          int $message_num,
          string $section = "",
          int $flags = 0
        ): bool
  • imap_scan

    Parameter type added for parameter #1 ($imap): IMAP\Connection

      imap_scan(
    -     $imap,
    +     IMAP\Connection $imap,
          string $reference,
          string $pattern,
          string $content
        ): array|false
  • imap_scanmailbox

    Parameter type added for parameter #1 ($imap): IMAP\Connection

      imap_scanmailbox(
    -     $imap,
    +     IMAP\Connection $imap,
          string $reference,
          string $pattern,
          string $content
        ): array|false
  • imap_search

    Parameter type added for parameter #1 ($imap): IMAP\Connection

      imap_search(
    -     $imap,
    +     IMAP\Connection $imap,
          string $criteria,
          int $flags = SE_FREE,
          string $charset = ""
        ): array|false
  • imap_set_quota

    Parameter type added for parameter #1 ($imap): IMAP\Connection

      imap_set_quota(
    -     $imap,
    +     IMAP\Connection $imap,
          string $quota_root,
          int $mailbox_size
        ): bool
  • imap_setacl

    Parameter type added for parameter #1 ($imap): IMAP\Connection

      imap_setacl(
    -     $imap,
    +     IMAP\Connection $imap,
          string $mailbox,
          string $user_id,
          string $rights
        ): bool
  • imap_setflag_full

    Parameter type added for parameter #1 ($imap): IMAP\Connection

      imap_setflag_full(
    -     $imap,
    +     IMAP\Connection $imap,
          string $sequence,
          string $flag,
          int $options = 0
        ): bool
  • imap_sort

    Parameter type added for parameter #1 ($imap): IMAP\Connection

      imap_sort(
    -     $imap,
    +     IMAP\Connection $imap,
          int $criteria,
          bool $reverse,
          int $flags = 0,
          ?string $search_criteria = null,
          ?string $charset = null
        ): array|false
  • imap_status
    • Return type added: stdClass|false
    • Parameter type added for parameter #1 ($imap): IMAP\Connection
      imap_status(
    -     $imap,
    +     IMAP\Connection $imap,
          string $mailbox,
          int $flags
    -   )
    +   ): stdClass|false
  • imap_subscribe

    Parameter type added for parameter #1 ($imap): IMAP\Connection

    - imap_subscribe($imap, string $mailbox): bool
    + imap_subscribe(IMAP\Connection $imap, string $mailbox): bool
  • imap_thread

    Parameter type added for parameter #1 ($imap): IMAP\Connection

    - imap_thread($imap, int $flags = SE_FREE): array|false
    + imap_thread(IMAP\Connection $imap, int $flags = SE_FREE): array|false
  • imap_uid

    Parameter type added for parameter #1 ($imap): IMAP\Connection

    - imap_uid($imap, int $message_num): int|false
    + imap_uid(IMAP\Connection $imap, int $message_num): int|false
  • imap_undelete

    Parameter type added for parameter #1 ($imap): IMAP\Connection

      imap_undelete(
    -     $imap,
    +     IMAP\Connection $imap,
          string $message_nums,
          int $flags = 0
        ): bool
  • imap_unsubscribe

    Parameter type added for parameter #1 ($imap): IMAP\Connection

    - imap_unsubscribe($imap, string $mailbox): bool
    + imap_unsubscribe(IMAP\Connection $imap, string $mailbox): bool
  • imap_headers

    Parameter type added for parameter #1 ($imap): IMAP\Connection

    - imap_headers($imap): array|false
    + imap_headers(IMAP\Connection $imap): array|false
  • imap_list

    Parameter type added for parameter #1 ($imap): IMAP\Connection

      imap_list(
    -     $imap,
    +     IMAP\Connection $imap,
          string $reference,
          string $pattern
        ): array|false
  • imap_append

    Parameter type added for parameter #1 ($imap): IMAP\Connection

      imap_append(
    -     $imap,
    +     IMAP\Connection $imap,
          string $folder,
          string $message,
          ?string $options = null,
          ?string $internal_date = null
        ): bool
  • imap_body

    Parameter type added for parameter #1 ($imap): IMAP\Connection

      imap_body(
    -     $imap,
    +     IMAP\Connection $imap,
          int $message_num,
          int $flags = 0
        ): string|false
  • imap_bodystruct
    • Return type added: stdClass|false
    • Parameter type added for parameter #1 ($imap): IMAP\Connection
      imap_bodystruct(
    -     $imap,
    +     IMAP\Connection $imap,
          int $message_num,
          string $section
    -   )
    +   ): stdClass|false
  • imap_check

    Parameter type added for parameter #1 ($imap): IMAP\Connection

    - imap_check($imap): stdClass|false
    + imap_check(IMAP\Connection $imap): stdClass|false
  • imap_clearflag_full

    Parameter type added for parameter #1 ($imap): IMAP\Connection

      imap_clearflag_full(
    -     $imap,
    +     IMAP\Connection $imap,
          string $sequence,
          string $flag,
          int $options = 0
        ): bool
  • imap_close

    Parameter type added for parameter #1 ($imap): IMAP\Connection

    - imap_close($imap, int $flags = 0): bool
    + imap_close(IMAP\Connection $imap, int $flags = 0): bool
  • imap_create

    Parameter type added for parameter #1 ($imap): IMAP\Connection

    - imap_create($imap, string $mailbox): bool
    + imap_create(IMAP\Connection $imap, string $mailbox): bool
  • imap_createmailbox

    Parameter type added for parameter #1 ($imap): IMAP\Connection

    - imap_createmailbox($imap, string $mailbox): bool
    + imap_createmailbox(IMAP\Connection $imap, string $mailbox): bool
  • imap_delete

    Parameter type added for parameter #1 ($imap): IMAP\Connection

      imap_delete(
    -     $imap,
    +     IMAP\Connection $imap,
          string $message_nums,
          int $flags = 0
        ): bool
  • imap_deletemailbox

    Parameter type added for parameter #1 ($imap): IMAP\Connection

    - imap_deletemailbox($imap, string $mailbox): bool
    + imap_deletemailbox(IMAP\Connection $imap, string $mailbox): bool
  • imap_expunge

    Parameter type added for parameter #1 ($imap): IMAP\Connection

    - imap_expunge($imap): bool
    + imap_expunge(IMAP\Connection $imap): bool
  • imap_fetch_overview

    Parameter type added for parameter #1 ($imap): IMAP\Connection

      imap_fetch_overview(
    -     $imap,
    +     IMAP\Connection $imap,
          string $sequence,
          int $flags = 0
        ): array|false
  • imap_fetchheader

    Parameter type added for parameter #1 ($imap): IMAP\Connection

      imap_fetchheader(
    -     $imap,
    +     IMAP\Connection $imap,
          int $message_num,
          int $flags = 0
        ): string|false
  • imap_fetchmime

    Parameter type added for parameter #1 ($imap): IMAP\Connection

      imap_fetchmime(
    -     $imap,
    +     IMAP\Connection $imap,
          int $message_num,
          string $section,
          int $flags = 0
        ): string|false
  • imap_fetchstructure

    Parameter type added for parameter #1 ($imap): IMAP\Connection

      imap_fetchstructure(
    -     $imap,
    +     IMAP\Connection $imap,
          int $message_num,
          int $flags = 0
        ): stdClass|false
  • imap_fetchtext

    Parameter type added for parameter #1 ($imap): IMAP\Connection

      imap_fetchtext(
    -     $imap,
    +     IMAP\Connection $imap,
          int $message_num,
          int $flags = 0
        ): string|false
  • imap_gc

    Parameter type added for parameter #1 ($imap): IMAP\Connection

    - imap_gc($imap, int $flags): bool
    + imap_gc(IMAP\Connection $imap, int $flags): bool
  • imap_get_quota

    Parameter type added for parameter #1 ($imap): IMAP\Connection

    - imap_get_quota($imap, string $quota_root): array|false
    + imap_get_quota(IMAP\Connection $imap, string $quota_root): array|false
  • imap_get_quotaroot

    Parameter type added for parameter #1 ($imap): IMAP\Connection

    - imap_get_quotaroot($imap, string $mailbox): array|false
    + imap_get_quotaroot(IMAP\Connection $imap, string $mailbox): array|false
  • imap_getacl

    Parameter type added for parameter #1 ($imap): IMAP\Connection

    - imap_getacl($imap, string $mailbox): array|false
    + imap_getacl(IMAP\Connection $imap, string $mailbox): array|false
  • imap_getmailboxes

    Parameter type added for parameter #1 ($imap): IMAP\Connection

      imap_getmailboxes(
    -     $imap,
    +     IMAP\Connection $imap,
          string $reference,
          string $pattern
        ): array|false
  • imap_getsubscribed

    Parameter type added for parameter #1 ($imap): IMAP\Connection

      imap_getsubscribed(
    -     $imap,
    +     IMAP\Connection $imap,
          string $reference,
          string $pattern
        ): array|false
  • imap_headerinfo

    Parameter type added for parameter #1 ($imap): IMAP\Connection

      imap_headerinfo(
    -     $imap,
    +     IMAP\Connection $imap,
          int $message_num,
          int $from_length = 0,
          int $subject_length = 0
        ): stdClass|false
  • imap_fetchbody

    Parameter type added for parameter #1 ($imap): IMAP\Connection

      imap_fetchbody(
    -     $imap,
    +     IMAP\Connection $imap,
          int $message_num,
          string $section,
          int $flags = 0
        ): string|false

ext-intl

  • datefmt_create
    • Parameter default value added for position #2 ($dateType): IntlDateFormatter::FULL
    • Parameter default value added for position #3 ($timeType): IntlDateFormatter::FULL
      datefmt_create(
          ?string $locale,
    -     int $dateType,
    +     int $dateType = IntlDateFormatter::FULL,
    -     int $timeType,
    +     int $timeType = IntlDateFormatter::FULL,
          $timezone = null,
          IntlCalendar|int|null $calendar = null,
          ?string $pattern = null
        ): ?IntlDateFormatter

ext-ldap

  • ldap_get_option

    Parameter type added for parameter #1 ($ldap): LDAP\Connection

      ldap_get_option(
    -     $ldap,
    +     LDAP\Connection $ldap,
          int $option,
          &$value = null
        ): bool
  • ldap_get_values
    • Parameter type added for parameter #1 ($ldap): LDAP\Connection
    • Parameter type added for parameter #2 ($entry): LDAP\ResultEntry
      ldap_get_values(
    -     $ldap,
    +     LDAP\Connection $ldap,
    -     $entry,
    +     LDAP\ResultEntry $entry,
          string $attribute
        ): array|false
  • ldap_get_values_len
    • Parameter type added for parameter #1 ($ldap): LDAP\Connection
    • Parameter type added for parameter #2 ($entry): LDAP\ResultEntry
      ldap_get_values_len(
    -     $ldap,
    +     LDAP\Connection $ldap,
    -     $entry,
    +     LDAP\ResultEntry $entry,
          string $attribute
        ): array|false
  • ldap_list

    Return type added: LDAP\Result|array|false

      ldap_list(
          $ldap,
          array|string $base,
          array|string $filter,
          array $attributes = [],
          int $attributes_only = 0,
          int $sizelimit = -1,
          int $timelimit = -1,
          int $deref = LDAP_DEREF_NEVER,
          ?array $controls = null
    -   )
    +   ): LDAP\Result|array|false
  • ldap_mod_add

    Parameter type added for parameter #1 ($ldap): LDAP\Connection

      ldap_mod_add(
    -     $ldap,
    +     LDAP\Connection $ldap,
          string $dn,
          array $entry,
          ?array $controls = null
        ): bool
  • ldap_mod_add_ext
    • Return type added: LDAP\Result|false
    • Parameter type added for parameter #1 ($ldap): LDAP\Connection
      ldap_mod_add_ext(
    -     $ldap,
    +     LDAP\Connection $ldap,
          string $dn,
          array $entry,
          ?array $controls = null
    -   )
    +   ): LDAP\Result|false
  • ldap_mod_del

    Parameter type added for parameter #1 ($ldap): LDAP\Connection

      ldap_mod_del(
    -     $ldap,
    +     LDAP\Connection $ldap,
          string $dn,
          array $entry,
          ?array $controls = null
        ): bool
  • ldap_get_entries
    • Parameter type added for parameter #1 ($ldap): LDAP\Connection
    • Parameter type added for parameter #2 ($result): LDAP\Result
    - ldap_get_entries($ldap, $result): array|false
    + ldap_get_entries(LDAP\Connection $ldap, LDAP\Result $result): array|false
  • ldap_mod_del_ext
    • Return type added: LDAP\Result|false
    • Parameter type added for parameter #1 ($ldap): LDAP\Connection
      ldap_mod_del_ext(
    -     $ldap,
    +     LDAP\Connection $ldap,
          string $dn,
          array $entry,
          ?array $controls = null
    -   )
    +   ): LDAP\Result|false
  • ldap_mod_replace

    Parameter type added for parameter #1 ($ldap): LDAP\Connection

      ldap_mod_replace(
    -     $ldap,
    +     LDAP\Connection $ldap,
          string $dn,
          array $entry,
          ?array $controls = null
        ): bool
  • ldap_mod_replace_ext
    • Return type added: LDAP\Result|false
    • Parameter type added for parameter #1 ($ldap): LDAP\Connection
      ldap_mod_replace_ext(
    -     $ldap,
    +     LDAP\Connection $ldap,
          string $dn,
          array $entry,
          ?array $controls = null
    -   )
    +   ): LDAP\Result|false
  • ldap_modify

    Parameter type added for parameter #1 ($ldap): LDAP\Connection

      ldap_modify(
    -     $ldap,
    +     LDAP\Connection $ldap,
          string $dn,
          array $entry,
          ?array $controls = null
        ): bool
  • ldap_modify_batch

    Parameter type added for parameter #1 ($ldap): LDAP\Connection

      ldap_modify_batch(
    -     $ldap,
    +     LDAP\Connection $ldap,
          string $dn,
          array $modifications_info,
          ?array $controls = null
        ): bool
  • ldap_next_attribute
    • Parameter type added for parameter #1 ($ldap): LDAP\Connection
    • Parameter type added for parameter #2 ($entry): LDAP\ResultEntry
    - ldap_next_attribute($ldap, $entry): string|false
    + ldap_next_attribute(LDAP\Connection $ldap, LDAP\ResultEntry $entry): string|false
  • ldap_next_entry
    • Return type added: LDAP\ResultEntry|false
    • Parameter type added for parameter #1 ($ldap): LDAP\Connection
    • Parameter type added for parameter #2 ($entry): LDAP\ResultEntry
    - ldap_next_entry($ldap, $entry)
    + ldap_next_entry(LDAP\Connection $ldap, LDAP\ResultEntry $entry): LDAP\ResultEntry|false
  • ldap_next_reference
    • Return type added: LDAP\ResultEntry|false
    • Parameter type added for parameter #1 ($ldap): LDAP\Connection
    • Parameter type added for parameter #2 ($entry): LDAP\ResultEntry
    - ldap_next_reference($ldap, $entry)
    + ldap_next_reference(LDAP\Connection $ldap, LDAP\ResultEntry $entry): LDAP\ResultEntry|false
  • ldap_parse_exop
    • Parameter type added for parameter #1 ($ldap): LDAP\Connection
    • Parameter type added for parameter #2 ($result): LDAP\Result
      ldap_parse_exop(
    -     $ldap,
    +     LDAP\Connection $ldap,
    -     $result,
    +     LDAP\Result $result,
          &$response_data = null,
          &$response_oid = null
        ): bool
  • ldap_parse_reference
    • Parameter type added for parameter #1 ($ldap): LDAP\Connection
    • Parameter type added for parameter #2 ($entry): LDAP\ResultEntry
      ldap_parse_reference(
    -     $ldap,
    +     LDAP\Connection $ldap,
    -     $entry,
    +     LDAP\ResultEntry $entry,
          &$referrals
        ): bool
  • ldap_parse_result
    • Parameter type added for parameter #1 ($ldap): LDAP\Connection
    • Parameter type added for parameter #2 ($result): LDAP\Result
      ldap_parse_result(
    -     $ldap,
    +     LDAP\Connection $ldap,
    -     $result,
    +     LDAP\Result $result,
          &$error_code,
          &$matched_dn = null,
          &$error_message = null,
          &$referrals = null,
          &$controls = null
        ): bool
  • ldap_read

    Return type added: LDAP\Result|array|false

      ldap_read(
          $ldap,
          array|string $base,
          array|string $filter,
          array $attributes = [],
          int $attributes_only = 0,
          int $sizelimit = -1,
          int $timelimit = -1,
          int $deref = LDAP_DEREF_NEVER,
          ?array $controls = null
    -   )
    +   ): LDAP\Result|array|false
  • ldap_rename

    Parameter type added for parameter #1 ($ldap): LDAP\Connection

      ldap_rename(
    -     $ldap,
    +     LDAP\Connection $ldap,
          string $dn,
          string $new_rdn,
          string $new_parent,
          bool $delete_old_rdn,
          ?array $controls = null
        ): bool
  • ldap_rename_ext
    • Return type added: LDAP\Result|false
    • Parameter type added for parameter #1 ($ldap): LDAP\Connection
      ldap_rename_ext(
    -     $ldap,
    +     LDAP\Connection $ldap,
          string $dn,
          string $new_rdn,
          string $new_parent,
          bool $delete_old_rdn,
          ?array $controls = null
    -   )
    +   ): LDAP\Result|false
  • ldap_sasl_bind

    Parameter type added for parameter #1 ($ldap): LDAP\Connection

      ldap_sasl_bind(
    -     $ldap,
    +     LDAP\Connection $ldap,
          ?string $dn = null,
          ?string $password = null,
          ?string $mech = null,
          ?string $realm = null,
          ?string $authc_id = null,
          ?string $authz_id = null,
          ?string $props = null
        ): bool
  • ldap_search

    Return type added: LDAP\Result|array|false

      ldap_search(
          $ldap,
          array|string $base,
          array|string $filter,
          array $attributes = [],
          int $attributes_only = 0,
          int $sizelimit = -1,
          int $timelimit = -1,
          int $deref = LDAP_DEREF_NEVER,
          ?array $controls = null
    -   )
    +   ): LDAP\Result|array|false
  • ldap_set_option

    Parameter type added for parameter #1 ($ldap): ?LDAP\Connection

      ldap_set_option(
    -     $ldap,
    +     ?LDAP\Connection $ldap,
          int $option,
          $value
        ): bool
  • ldap_set_rebind_proc

    Parameter type added for parameter #1 ($ldap): LDAP\Connection

    - ldap_set_rebind_proc($ldap, ?callable $callback): bool
    + ldap_set_rebind_proc(LDAP\Connection $ldap, ?callable $callback): bool
  • ldap_unbind

    Parameter type added for parameter #1 ($ldap): LDAP\Connection

    - ldap_unbind($ldap): bool
    + ldap_unbind(LDAP\Connection $ldap): bool
  • ldap_start_tls

    Parameter type added for parameter #1 ($ldap): LDAP\Connection

    - ldap_start_tls($ldap): bool
    + ldap_start_tls(LDAP\Connection $ldap): bool
  • ldap_count_references
    • Parameter type added for parameter #1 ($ldap): LDAP\Connection
    • Parameter type added for parameter #2 ($result): LDAP\Result
    - ldap_count_references($ldap, $result): int
    + ldap_count_references(LDAP\Connection $ldap, LDAP\Result $result): int
  • ldap_get_dn
    • Parameter type added for parameter #1 ($ldap): LDAP\Connection
    • Parameter type added for parameter #2 ($entry): LDAP\ResultEntry
    - ldap_get_dn($ldap, $entry): string|false
    + ldap_get_dn(LDAP\Connection $ldap, LDAP\ResultEntry $entry): string|false
  • ldap_add

    Parameter type added for parameter #1 ($ldap): LDAP\Connection

      ldap_add(
    -     $ldap,
    +     LDAP\Connection $ldap,
          string $dn,
          array $entry,
          ?array $controls = null
        ): bool
  • ldap_add_ext
    • Return type added: LDAP\Result|false
    • Parameter type added for parameter #1 ($ldap): LDAP\Connection
      ldap_add_ext(
    -     $ldap,
    +     LDAP\Connection $ldap,
          string $dn,
          array $entry,
          ?array $controls = null
    -   )
    +   ): LDAP\Result|false
  • ldap_bind

    Parameter type added for parameter #1 ($ldap): LDAP\Connection

      ldap_bind(
    -     $ldap,
    +     LDAP\Connection $ldap,
          ?string $dn = null,
          ?string $password = null
        ): bool
  • ldap_bind_ext
    • Return type added: LDAP\Result|false
    • Parameter type added for parameter #1 ($ldap): LDAP\Connection
      ldap_bind_ext(
    -     $ldap,
    +     LDAP\Connection $ldap,
          ?string $dn = null,
          ?string $password = null,
          ?array $controls = null
    -   )
    +   ): LDAP\Result|false
  • ldap_close

    Parameter type added for parameter #1 ($ldap): LDAP\Connection

    - ldap_close($ldap): bool
    + ldap_close(LDAP\Connection $ldap): bool
  • ldap_compare

    Parameter type added for parameter #1 ($ldap): LDAP\Connection

      ldap_compare(
    -     $ldap,
    +     LDAP\Connection $ldap,
          string $dn,
          string $attribute,
          string $value,
          ?array $controls = null
        ): int|bool
  • ldap_connect

    Return type added: LDAP\Connection|false

    - ldap_connect(?string $uri = null, int $port = 389)
    + ldap_connect(?string $uri = null, int $port = 389): LDAP\Connection|false
  • ldap_count_entries
    • Parameter type added for parameter #1 ($ldap): LDAP\Connection
    • Parameter type added for parameter #2 ($result): LDAP\Result
    - ldap_count_entries($ldap, $result): int
    + ldap_count_entries(LDAP\Connection $ldap, LDAP\Result $result): int
  • ldap_delete

    Parameter type added for parameter #1 ($ldap): LDAP\Connection

      ldap_delete(
    -     $ldap,
    +     LDAP\Connection $ldap,
          string $dn,
          ?array $controls = null
        ): bool
  • ldap_delete_ext
    • Return type added: LDAP\Result|false
    • Parameter type added for parameter #1 ($ldap): LDAP\Connection
      ldap_delete_ext(
    -     $ldap,
    +     LDAP\Connection $ldap,
          string $dn,
          ?array $controls = null
    -   )
    +   ): LDAP\Result|false
  • ldap_errno

    Parameter type added for parameter #1 ($ldap): LDAP\Connection

    - ldap_errno($ldap): int
    + ldap_errno(LDAP\Connection $ldap): int
  • ldap_error

    Parameter type added for parameter #1 ($ldap): LDAP\Connection

    - ldap_error($ldap): string
    + ldap_error(LDAP\Connection $ldap): string
  • ldap_exop
    • Return type added: LDAP\Result|bool
    • Parameter type added for parameter #1 ($ldap): LDAP\Connection
      ldap_exop(
    -     $ldap,
    +     LDAP\Connection $ldap,
          string $request_oid,
          ?string $request_data = null,
          ?array $controls = NULL,
          &$response_data = <default>,
          &$response_oid = null
    -   )
    +   ): LDAP\Result|bool
  • ldap_exop_passwd

    Parameter type added for parameter #1 ($ldap): LDAP\Connection

      ldap_exop_passwd(
    -     $ldap,
    +     LDAP\Connection $ldap,
          string $user = "",
          string $old_password = "",
          string $new_password = "",
          &$controls = null
        ): string|bool
  • LDAP_EXOP_REFRESH

    Parameter type added for parameter #1 ($ldap): LDAP\Connection

      ldap_exop_refresh(
    -     $ldap,
    +     LDAP\Connection $ldap,
          string $dn,
          int $ttl
        ): int|false
  • ldap_exop_whoami

    Parameter type added for parameter #1 ($ldap): LDAP\Connection

    - ldap_exop_whoami($ldap): string|false
    + ldap_exop_whoami(LDAP\Connection $ldap): string|false
  • ldap_first_attribute
    • Parameter type added for parameter #1 ($ldap): LDAP\Connection
    • Parameter type added for parameter #2 ($entry): LDAP\ResultEntry
    - ldap_first_attribute($ldap, $entry): string|false
    + ldap_first_attribute(LDAP\Connection $ldap, LDAP\ResultEntry $entry): string|false
  • ldap_first_entry
    • Return type added: LDAP\ResultEntry|false
    • Parameter type added for parameter #1 ($ldap): LDAP\Connection
    • Parameter type added for parameter #2 ($result): LDAP\Result
    - ldap_first_entry($ldap, $result)
    + ldap_first_entry(LDAP\Connection $ldap, LDAP\Result $result): LDAP\ResultEntry|false
  • ldap_first_reference
    • Return type added: LDAP\ResultEntry|false
    • Parameter type added for parameter #1 ($ldap): LDAP\Connection
    • Parameter type added for parameter #2 ($result): LDAP\Result
    - ldap_first_reference($ldap, $result)
    + ldap_first_reference(LDAP\Connection $ldap, LDAP\Result $result): LDAP\ResultEntry|false
  • ldap_free_result
    • Parameter name of parameter #1 changed: $ldap to $result
    • Parameter type added for parameter #1 ($result): LDAP\Result
    - ldap_free_result($ldap): bool
    + ldap_free_result(LDAP\Result $result): bool
  • ldap_get_attributes
    • Parameter type added for parameter #1 ($ldap): LDAP\Connection
    • Parameter type added for parameter #2 ($entry): LDAP\ResultEntry
    - ldap_get_attributes($ldap, $entry): array
    + ldap_get_attributes(LDAP\Connection $ldap, LDAP\ResultEntry $entry): array

ext-mysqli

  • mysqli_stmt_execute
    • Optional parameter added - #2: ?array $params = null
    - mysqli_stmt_execute(mysqli_stmt $statement): bool
    + mysqli_stmt_execute(mysqli_stmt $statement, ?array $params = null): bool
  • mysqli_execute
    • Optional parameter added - #2: ?array $params = null
    - mysqli_execute(mysqli_stmt $statement): bool
    + mysqli_execute(mysqli_stmt $statement, ?array $params = null): bool

ext-odbc

  • odbc_data_source

    Return type changed: array|false to array|false|null

    - odbc_data_source($odbc, int $fetch_type): array|false
    + odbc_data_source($odbc, int $fetch_type): array|false|null

ext-openssl

  • openssl_cms_encrypt

    Parameter default value changed for position #7 ($cipher_algo): OPENSSL_CIPHER_RC2_40 to OPENSSL_CIPHER_AES_128_CBC

      openssl_cms_encrypt(
          string $input_filename,
          string $output_filename,
          $certificate,
          ?array $headers,
          int $flags = 0,
          int $encoding = OPENSSL_ENCODING_SMIME,
    -     int $cipher_algo = OPENSSL_CIPHER_RC2_40
    +     int $cipher_algo = OPENSSL_CIPHER_AES_128_CBC
        ): bool
  • openssl_decrypt
    • Parameter type changed for parameter #6 ($tag): string to ?string
    • Parameter default value changed for position #6 ($tag): "" to null
      openssl_decrypt(
          string $data,
          string $cipher_algo,
          string $passphrase,
          int $options = 0,
          string $iv = "",
    -     string $tag = "",
    +     ?string $tag = null,
          string $aad = ""
        ): string|false
  • openssl_pkcs7_encrypt

    Parameter default value changed for position #6 ($cipher_algo): OPENSSL_CIPHER_RC2_40 to OPENSSL_CIPHER_AES_128_CBC

      openssl_pkcs7_encrypt(
          string $input_filename,
          string $output_filename,
          $certificate,
          ?array $headers,
          int $flags = 0,
    -     int $cipher_algo = OPENSSL_CIPHER_RC2_40
    +     int $cipher_algo = OPENSSL_CIPHER_AES_128_CBC
        ): bool

ext-pgsql

  • pg_lo_write

    Parameter type added for parameter #1 ($lob): PgSql\Lob

      pg_lo_write(
    -     $lob,
    +     PgSql\Lob $lob,
          string $data,
          ?int $length = null
        ): int|false
  • pg_lo_open

    Return type added: PgSql\Lob|false

      pg_lo_open(
          $connection,
          $oid = <default>,
          string $mode = <default>
    -   )
    +   ): PgSql\Lob|false
  • pg_field_type_oid

    Parameter type added for parameter #1 ($result): PgSql\Result

    - pg_field_type_oid($result, int $field): string|int
    + pg_field_type_oid(PgSql\Result $result, int $field): string|int
  • pg_field_type

    Parameter type added for parameter #1 ($result): PgSql\Result

    - pg_field_type($result, int $field): string
    + pg_field_type(PgSql\Result $result, int $field): string
  • pg_lo_read

    Parameter type added for parameter #1 ($lob): PgSql\Lob

    - pg_lo_read($lob, int $length = 8192): string|false
    + pg_lo_read(PgSql\Lob $lob, int $length = 8192): string|false
  • pg_lo_read_all

    Parameter type added for parameter #1 ($lob): PgSql\Lob

    - pg_lo_read_all($lob): int
    + pg_lo_read_all(PgSql\Lob $lob): int
  • pg_lo_seek

    Parameter type added for parameter #1 ($lob): PgSql\Lob

      pg_lo_seek(
    -     $lob,
    +     PgSql\Lob $lob,
          int $offset,
          int $whence = SEEK_CUR
        ): bool
  • pg_lo_tell

    Parameter type added for parameter #1 ($lob): PgSql\Lob

    - pg_lo_tell($lob): int
    + pg_lo_tell(PgSql\Lob $lob): int
  • pg_lo_truncate

    Parameter type added for parameter #1 ($lob): PgSql\Lob

    - pg_lo_truncate($lob, int $size): bool
    + pg_lo_truncate(PgSql\Lob $lob, int $size): bool
  • pg_lo_close

    Parameter type added for parameter #1 ($lob): PgSql\Lob

    - pg_lo_close($lob): bool
    + pg_lo_close(PgSql\Lob $lob): bool
  • pg_loclose

    Parameter type added for parameter #1 ($lob): PgSql\Lob

      #[\Deprecated]
    - pg_loclose($lob): bool
    + pg_loclose(PgSql\Lob $lob): bool
  • pg_loopen

    Return type added: PgSql\Lob|false

      #[\Deprecated]
      pg_loopen(
          $connection,
          $oid = <default>,
          string $mode = <default>
    -   )
    +   ): PgSql\Lob|false
  • pg_field_table

    Parameter type added for parameter #1 ($result): PgSql\Result

      pg_field_table(
    -     $result,
    +     PgSql\Result $result,
          int $field,
          bool $oid_only = false
        ): string|int|false
  • pg_insert
    • Return type added: PgSql\Result|string|bool
    • Parameter type added for parameter #1 ($connection): PgSql\Connection
      pg_insert(
    -     $connection,
    +     PgSql\Connection $connection,
          string $table_name,
          array $values,
          int $flags = PGSQL_DML_EXEC
    -   )
    +   ): PgSql\Result|string|bool
  • pg_field_size

    Parameter type added for parameter #1 ($result): PgSql\Result

    - pg_field_size($result, int $field): int
    + pg_field_size(PgSql\Result $result, int $field): int
  • pg_get_pid

    Parameter type added for parameter #1 ($connection): PgSql\Connection

    - pg_get_pid($connection): int
    + pg_get_pid(PgSql\Connection $connection): int
  • pg_fieldnum

    Parameter type added for parameter #1 ($result): PgSql\Result

      #[\Deprecated]
    - pg_fieldnum($result, string $field): int
    + pg_fieldnum(PgSql\Result $result, string $field): int
  • pg_fieldprtlen

    Parameter type added for parameter #1 ($result): PgSql\Result

      #[\Deprecated]
      pg_fieldprtlen(
    -     $result,
    +     PgSql\Result $result,
          $row,
          string|int $field = <default>
        ): int|false
  • pg_fieldsize

    Parameter type added for parameter #1 ($result): PgSql\Result

      #[\Deprecated]
    - pg_fieldsize($result, int $field): int
    + pg_fieldsize(PgSql\Result $result, int $field): int
  • pg_fieldtype

    Parameter type added for parameter #1 ($result): PgSql\Result

      #[\Deprecated]
    - pg_fieldtype($result, int $field): string
    + pg_fieldtype(PgSql\Result $result, int $field): string
  • pg_flush

    Parameter type added for parameter #1 ($connection): PgSql\Connection

    - pg_flush($connection): int|bool
    + pg_flush(PgSql\Connection $connection): int|bool
  • pg_free_result

    Parameter type added for parameter #1 ($result): PgSql\Result

    - pg_free_result($result): bool
    + pg_free_result(PgSql\Result $result): bool
  • pg_freeresult

    Parameter type added for parameter #1 ($result): PgSql\Result

      #[\Deprecated]
    - pg_freeresult($result): bool
    + pg_freeresult(PgSql\Result $result): bool
  • pg_get_notify

    Parameter type added for parameter #1 ($connection): PgSql\Connection

    - pg_get_notify($connection, int $mode = PGSQL_ASSOC): array|false
    + pg_get_notify(PgSql\Connection $connection, int $mode = PGSQL_ASSOC): array|false
  • pg_fieldname

    Parameter type added for parameter #1 ($result): PgSql\Result

      #[\Deprecated]
    - pg_fieldname($result, int $field): string
    + pg_fieldname(PgSql\Result $result, int $field): string
  • pg_get_result
    • Return type added: PgSql\Result|false
    • Parameter type added for parameter #1 ($connection): PgSql\Connection
    - pg_get_result($connection)
    + pg_get_result(PgSql\Connection $connection): PgSql\Result|false
  • pg_getlastoid

    Parameter type added for parameter #1 ($result): PgSql\Result

      #[\Deprecated]
    - pg_getlastoid($result): string|int|false
    + pg_getlastoid(PgSql\Result $result): string|int|false
  • pg_host

    Parameter type added for parameter #1 ($connection): ?PgSql\Connection

    - pg_host($connection = null): string
    + pg_host(?PgSql\Connection $connection = null): string
  • pg_fieldisnull

    Parameter type added for parameter #1 ($result): PgSql\Result

      #[\Deprecated]
      pg_fieldisnull(
    -     $result,
    +     PgSql\Result $result,
          $row,
          string|int $field = <default>
        ): int|false
  • pg_last_error

    Parameter type added for parameter #1 ($connection): ?PgSql\Connection

    - pg_last_error($connection = null): string
    + pg_last_error(?PgSql\Connection $connection = null): string
  • pg_last_notice

    Parameter type added for parameter #1 ($connection): PgSql\Connection

    - pg_last_notice($connection, int $mode = PGSQL_NOTICE_LAST): array|string|bool
    + pg_last_notice(PgSql\Connection $connection, int $mode = PGSQL_NOTICE_LAST): array|string|bool
  • pg_last_oid

    Parameter type added for parameter #1 ($result): PgSql\Result

    - pg_last_oid($result): string|int|false
    + pg_last_oid(PgSql\Result $result): string|int|false
  • pg_trace

    Parameter type added for parameter #3 ($connection): ?PgSql\Connection

      pg_trace(
          string $filename,
          string $mode = "w",
    -     $connection = null
    +     ?PgSql\Connection $connection = null
        ): bool
  • pg_result_seek

    Parameter type added for parameter #1 ($result): PgSql\Result

    - pg_result_seek($result, int $row): bool
    + pg_result_seek(PgSql\Result $result, int $row): bool
  • pg_result_status

    Parameter type added for parameter #1 ($result): PgSql\Result

    - pg_result_status($result, int $mode = PGSQL_STATUS_LONG): string|int
    + pg_result_status(PgSql\Result $result, int $mode = PGSQL_STATUS_LONG): string|int
  • pg_select

    Parameter type added for parameter #1 ($connection): PgSql\Connection

      pg_select(
    -     $connection,
    +     PgSql\Connection $connection,
          string $table_name,
          array $conditions,
          int $flags = PGSQL_DML_EXEC,
          int $mode = PGSQL_ASSOC
        ): array|string|false
  • pg_send_execute

    Parameter type added for parameter #1 ($connection): PgSql\Connection

      pg_send_execute(
    -     $connection,
    +     PgSql\Connection $connection,
          string $statement_name,
          array $params
        ): int|bool
  • pg_send_prepare

    Parameter type added for parameter #1 ($connection): PgSql\Connection

      pg_send_prepare(
    -     $connection,
    +     PgSql\Connection $connection,
          string $statement_name,
          string $query
        ): int|bool
  • pg_send_query

    Parameter type added for parameter #1 ($connection): PgSql\Connection

    - pg_send_query($connection, string $query): int|bool
    + pg_send_query(PgSql\Connection $connection, string $query): int|bool
  • pg_send_query_params

    Parameter type added for parameter #1 ($connection): PgSql\Connection

      pg_send_query_params(
    -     $connection,
    +     PgSql\Connection $connection,
          string $query,
          array $params
        ): int|bool
  • pg_socket

    Parameter type added for parameter #1 ($connection): PgSql\Connection

    - pg_socket($connection)
    + pg_socket(PgSql\Connection $connection)
  • pg_result_error_field

    Parameter type added for parameter #1 ($result): PgSql\Result

    - pg_result_error_field($result, int $field_code): string|false|null
    + pg_result_error_field(PgSql\Result $result, int $field_code): string|false|null
  • pg_transaction_status

    Parameter type added for parameter #1 ($connection): PgSql\Connection

    - pg_transaction_status($connection): int
    + pg_transaction_status(PgSql\Connection $connection): int
  • pg_tty

    Parameter type added for parameter #1 ($connection): ?PgSql\Connection

    - pg_tty($connection = null): string
    + pg_tty(?PgSql\Connection $connection = null): string
  • pg_untrace

    Parameter type added for parameter #1 ($connection): ?PgSql\Connection

    - pg_untrace($connection = null): bool
    + pg_untrace(?PgSql\Connection $connection = null): bool
  • pg_update

    Parameter type added for parameter #1 ($connection): PgSql\Connection

      pg_update(
    -     $connection,
    +     PgSql\Connection $connection,
          string $table_name,
          array $values,
          array $conditions,
          int $flags = PGSQL_DML_EXEC
        ): string|bool
  • pg_version

    Parameter type added for parameter #1 ($connection): ?PgSql\Connection

    - pg_version($connection = null): array
    + pg_version(?PgSql\Connection $connection = null): array
  • pg_pconnect

    Return type added: PgSql\Connection|false

    - pg_pconnect(string $connection_string, int $flags = 0)
    + pg_pconnect(string $connection_string, int $flags = 0): PgSql\Connection|false
  • pg_loreadall

    Parameter type added for parameter #1 ($lob): PgSql\Lob

      #[\Deprecated]
    - pg_loreadall($lob): int
    + pg_loreadall(PgSql\Lob $lob): int
  • pg_lowrite

    Parameter type added for parameter #1 ($lob): PgSql\Lob

      #[\Deprecated]
      pg_lowrite(
    -     $lob,
    +     PgSql\Lob $lob,
          string $data,
          ?int $length = null
        ): int|false
  • pg_meta_data

    Parameter type added for parameter #1 ($connection): PgSql\Connection

      pg_meta_data(
    -     $connection,
    +     PgSql\Connection $connection,
          string $table_name,
          bool $extended = false
        ): array|false
  • pg_num_fields

    Parameter type added for parameter #1 ($result): PgSql\Result

    - pg_num_fields($result): int
    + pg_num_fields(PgSql\Result $result): int
  • pg_num_rows

    Parameter type added for parameter #1 ($result): PgSql\Result

    - pg_num_rows($result): int
    + pg_num_rows(PgSql\Result $result): int
  • pg_numfields

    Parameter type added for parameter #1 ($result): PgSql\Result

      #[\Deprecated]
    - pg_numfields($result): int
    + pg_numfields(PgSql\Result $result): int
  • pg_numrows

    Parameter type added for parameter #1 ($result): PgSql\Result

      #[\Deprecated]
    - pg_numrows($result): int
    + pg_numrows(PgSql\Result $result): int
  • pg_options

    Parameter type added for parameter #1 ($connection): ?PgSql\Connection

    - pg_options($connection = null): string
    + pg_options(?PgSql\Connection $connection = null): string
  • pg_loread

    Parameter type added for parameter #1 ($lob): PgSql\Lob

      #[\Deprecated]
    - pg_loread($lob, int $length = 8192): string|false
    + pg_loread(PgSql\Lob $lob, int $length = 8192): string|false
  • pg_ping

    Parameter type added for parameter #1 ($connection): ?PgSql\Connection

    - pg_ping($connection = null): bool
    + pg_ping(?PgSql\Connection $connection = null): bool
  • pg_port

    Parameter type added for parameter #1 ($connection): ?PgSql\Connection

    - pg_port($connection = null): string
    + pg_port(?PgSql\Connection $connection = null): string
  • pg_prepare

    Return type added: PgSql\Result|false

      pg_prepare(
          $connection,
          string $statement_name,
          string $query = <default>
    -   )
    +   ): PgSql\Result|false
  • pg_query

    Return type added: PgSql\Result|false

    - pg_query($connection, string $query = <default>)
    + pg_query($connection, string $query = <default>): PgSql\Result|false
  • pg_query_params

    Return type added: PgSql\Result|false

      pg_query_params(
          $connection,
          $query,
          array $params = <default>
    -   )
    +   ): PgSql\Result|false
  • pg_result

    Parameter type added for parameter #1 ($result): PgSql\Result

      #[\Deprecated]
      pg_result(
    -     $result,
    +     PgSql\Result $result,
          $row,
          string|int $field = <default>
        ): string|false|null
  • pg_result_error

    Parameter type added for parameter #1 ($result): PgSql\Result

    - pg_result_error($result): string|false
    + pg_result_error(PgSql\Result $result): string|false
  • pg_cmdtuples

    Parameter type added for parameter #1 ($result): PgSql\Result

      #[\Deprecated]
    - pg_cmdtuples($result): int
    + pg_cmdtuples(PgSql\Result $result): int
  • pg_field_prtlen

    Parameter type added for parameter #1 ($result): PgSql\Result

      pg_field_prtlen(
    -     $result,
    +     PgSql\Result $result,
          $row,
          string|int $field = <default>
        ): int|false
  • pg_affected_rows

    Parameter type added for parameter #1 ($result): PgSql\Result

    - pg_affected_rows($result): int
    + pg_affected_rows(PgSql\Result $result): int
  • pg_cancel_query

    Parameter type added for parameter #1 ($connection): PgSql\Connection

    - pg_cancel_query($connection): bool
    + pg_cancel_query(PgSql\Connection $connection): bool
  • pg_client_encoding

    Parameter type added for parameter #1 ($connection): ?PgSql\Connection

    - pg_client_encoding($connection = null): string
    + pg_client_encoding(?PgSql\Connection $connection = null): string
  • pg_clientencoding

    Parameter type added for parameter #1 ($connection): ?PgSql\Connection

      #[\Deprecated]
    - pg_clientencoding($connection = null): string
    + pg_clientencoding(?PgSql\Connection $connection = null): string
  • pg_close

    Parameter type added for parameter #1 ($connection): ?PgSql\Connection

    - pg_close($connection = null): bool
    + pg_close(?PgSql\Connection $connection = null): bool
  • pg_connect

    Return type added: PgSql\Connection|false

    - pg_connect(string $connection_string, int $flags = 0)
    + pg_connect(string $connection_string, int $flags = 0): PgSql\Connection|false
  • pg_connect_poll

    Parameter type added for parameter #1 ($connection): PgSql\Connection

    - pg_connect_poll($connection): int
    + pg_connect_poll(PgSql\Connection $connection): int
  • pg_connection_busy

    Parameter type added for parameter #1 ($connection): PgSql\Connection

    - pg_connection_busy($connection): bool
    + pg_connection_busy(PgSql\Connection $connection): bool
  • pg_connection_reset

    Parameter type added for parameter #1 ($connection): PgSql\Connection

    - pg_connection_reset($connection): bool
    + pg_connection_reset(PgSql\Connection $connection): bool
  • pg_connection_status

    Parameter type added for parameter #1 ($connection): PgSql\Connection

    - pg_connection_status($connection): int
    + pg_connection_status(PgSql\Connection $connection): int
  • pg_consume_input

    Parameter type added for parameter #1 ($connection): PgSql\Connection

    - pg_consume_input($connection): bool
    + pg_consume_input(PgSql\Connection $connection): bool
  • pg_convert

    Parameter type added for parameter #1 ($connection): PgSql\Connection

      pg_convert(
    -     $connection,
    +     PgSql\Connection $connection,
          string $table_name,
          array $values,
          int $flags = 0
        ): array|false
  • pg_copy_from

    Parameter type added for parameter #1 ($connection): PgSql\Connection

      pg_copy_from(
    -     $connection,
    +     PgSql\Connection $connection,
          string $table_name,
          array $rows,
          string $separator = "\t",
          string $null_as = "\\\\N"
        ): bool
  • pg_copy_to

    Parameter type added for parameter #1 ($connection): PgSql\Connection

      pg_copy_to(
    -     $connection,
    +     PgSql\Connection $connection,
          string $table_name,
          string $separator = "\t",
          string $null_as = "\\\\N"
        ): array|false
  • pg_delete

    Parameter type added for parameter #1 ($connection): PgSql\Connection

      pg_delete(
    -     $connection,
    +     PgSql\Connection $connection,
          string $table_name,
          array $conditions,
          int $flags = PGSQL_DML_EXEC
        ): string|bool
  • pg_field_num

    Parameter type added for parameter #1 ($result): PgSql\Result

    - pg_field_num($result, string $field): int
    + pg_field_num(PgSql\Result $result, string $field): int
  • pg_field_name

    Parameter type added for parameter #1 ($result): PgSql\Result

    - pg_field_name($result, int $field): string
    + pg_field_name(PgSql\Result $result, int $field): string
  • pg_field_is_null

    Parameter type added for parameter #1 ($result): PgSql\Result

      pg_field_is_null(
    -     $result,
    +     PgSql\Result $result,
          $row,
          string|int $field = <default>
        ): int|false
  • pg_fetch_row

    Parameter type added for parameter #1 ($result): PgSql\Result

      pg_fetch_row(
    -     $result,
    +     PgSql\Result $result,
          ?int $row = null,
          int $mode = PGSQL_NUM
        ): array|false
  • pg_fetch_result

    Parameter type added for parameter #1 ($result): PgSql\Result

      pg_fetch_result(
    -     $result,
    +     PgSql\Result $result,
          $row,
          string|int $field = <default>
        ): string|false|null
  • pg_fetch_object

    Parameter type added for parameter #1 ($result): PgSql\Result

      pg_fetch_object(
    -     $result,
    +     PgSql\Result $result,
          ?int $row = null,
          string $class = "stdClass",
          array $constructor_args = []
        ): object|false
  • pg_fetch_assoc

    Parameter type added for parameter #1 ($result): PgSql\Result

    - pg_fetch_assoc($result, ?int $row = null): array|false
    + pg_fetch_assoc(PgSql\Result $result, ?int $row = null): array|false
  • pg_fetch_all_columns

    Parameter type added for parameter #1 ($result): PgSql\Result

    - pg_fetch_all_columns($result, int $field = 0): array
    + pg_fetch_all_columns(PgSql\Result $result, int $field = 0): array
  • pg_dbname

    Parameter type added for parameter #1 ($connection): ?PgSql\Connection

    - pg_dbname($connection = null): string
    + pg_dbname(?PgSql\Connection $connection = null): string
  • pg_end_copy

    Parameter type added for parameter #1 ($connection): ?PgSql\Connection

    - pg_end_copy($connection = null): bool
    + pg_end_copy(?PgSql\Connection $connection = null): bool
  • pg_errormessage

    Parameter type added for parameter #1 ($connection): ?PgSql\Connection

      #[\Deprecated]
    - pg_errormessage($connection = null): string
    + pg_errormessage(?PgSql\Connection $connection = null): string
  • pg_exec

    Return type added: PgSql\Result|false

    - pg_exec($connection, string $query = <default>)
    + pg_exec($connection, string $query = <default>): PgSql\Result|false
  • pg_fetch_all

    Parameter type added for parameter #1 ($result): PgSql\Result

    - pg_fetch_all($result, int $mode = PGSQL_ASSOC): array
    + pg_fetch_all(PgSql\Result $result, int $mode = PGSQL_ASSOC): array
  • pg_fetch_array

    Parameter type added for parameter #1 ($result): PgSql\Result

      pg_fetch_array(
    -     $result,
    +     PgSql\Result $result,
          ?int $row = null,
          int $mode = PGSQL_BOTH
        ): array|false
  • pg_execute

    Return type added: PgSql\Result|false

      pg_execute(
          $connection,
          $statement_name,
          array $params = <default>
    -   )
    +   ): PgSql\Result|false

ext-pspell

  • pspell_config_repl

    Parameter type changed for parameter #1 ($config): int to PSpell\Config

    - pspell_config_repl(int $config, string $filename): bool
    + pspell_config_repl(PSpell\Config $config, string $filename): bool
  • pspell_add_to_session

    Parameter type changed for parameter #1 ($dictionary): int to PSpell\Dictionary

    - pspell_add_to_session(int $dictionary, string $word): bool
    + pspell_add_to_session(PSpell\Dictionary $dictionary, string $word): bool
  • pspell_check

    Parameter type changed for parameter #1 ($dictionary): int to PSpell\Dictionary

    - pspell_check(int $dictionary, string $word): bool
    + pspell_check(PSpell\Dictionary $dictionary, string $word): bool
  • pspell_clear_session

    Parameter type changed for parameter #1 ($dictionary): int to PSpell\Dictionary

    - pspell_clear_session(int $dictionary): bool
    + pspell_clear_session(PSpell\Dictionary $dictionary): bool
  • pspell_config_create

    Return type changed: int to PSpell\Config

      pspell_config_create(
          string $language,
          string $spelling = "",
          string $jargon = "",
          string $encoding = ""
    -   ): int
    +   ): PSpell\Config
  • pspell_config_data_dir

    Parameter type changed for parameter #1 ($config): int to PSpell\Config

    - pspell_config_data_dir(int $config, string $directory): bool
    + pspell_config_data_dir(PSpell\Config $config, string $directory): bool
  • pspell_config_dict_dir

    Parameter type changed for parameter #1 ($config): int to PSpell\Config

    - pspell_config_dict_dir(int $config, string $directory): bool
    + pspell_config_dict_dir(PSpell\Config $config, string $directory): bool
  • pspell_config_ignore

    Parameter type changed for parameter #1 ($config): int to PSpell\Config

    - pspell_config_ignore(int $config, int $min_length): bool
    + pspell_config_ignore(PSpell\Config $config, int $min_length): bool
  • pspell_config_mode

    Parameter type changed for parameter #1 ($config): int to PSpell\Config

    - pspell_config_mode(int $config, int $mode): bool
    + pspell_config_mode(PSpell\Config $config, int $mode): bool
  • pspell_config_personal

    Parameter type changed for parameter #1 ($config): int to PSpell\Config

    - pspell_config_personal(int $config, string $filename): bool
    + pspell_config_personal(PSpell\Config $config, string $filename): bool
  • pspell_add_to_personal

    Parameter type changed for parameter #1 ($dictionary): int to PSpell\Dictionary

    - pspell_add_to_personal(int $dictionary, string $word): bool
    + pspell_add_to_personal(PSpell\Dictionary $dictionary, string $word): bool
  • pspell_config_runtogether

    Parameter type changed for parameter #1 ($config): int to PSpell\Config

    - pspell_config_runtogether(int $config, bool $allow): bool
    + pspell_config_runtogether(PSpell\Config $config, bool $allow): bool
  • pspell_config_save_repl

    Parameter type changed for parameter #1 ($config): int to PSpell\Config

    - pspell_config_save_repl(int $config, bool $save): bool
    + pspell_config_save_repl(PSpell\Config $config, bool $save): bool
  • pspell_new

    Return type changed: int|false to PSpell\Dictionary|false

      pspell_new(
          string $language,
          string $spelling = "",
          string $jargon = "",
          string $encoding = "",
          int $mode = 0
    -   ): int|false
    +   ): PSpell\Dictionary|false
  • pspell_new_config
    • Return type changed: int|false to PSpell\Dictionary|false
    • Parameter type changed for parameter #1 ($config): int to PSpell\Config
    - pspell_new_config(int $config): int|false
    + pspell_new_config(PSpell\Config $config): PSpell\Dictionary|false
  • pspell_new_personal

    Return type changed: int|false to PSpell\Dictionary|false

      pspell_new_personal(
          string $filename,
          string $language,
          string $spelling = "",
          string $jargon = "",
          string $encoding = "",
          int $mode = 0
    -   ): int|false
    +   ): PSpell\Dictionary|false
  • pspell_save_wordlist

    Parameter type changed for parameter #1 ($dictionary): int to PSpell\Dictionary

    - pspell_save_wordlist(int $dictionary): bool
    + pspell_save_wordlist(PSpell\Dictionary $dictionary): bool
  • pspell_store_replacement

    Parameter type changed for parameter #1 ($dictionary): int to PSpell\Dictionary

      pspell_store_replacement(
    -     int $dictionary,
    +     PSpell\Dictionary $dictionary,
          string $misspelled,
          string $correct
        ): bool
  • pspell_suggest

    Parameter type changed for parameter #1 ($dictionary): int to PSpell\Dictionary

    - pspell_suggest(int $dictionary, string $word): array|false
    + pspell_suggest(PSpell\Dictionary $dictionary, string $word): array|false

ext-random

  • srand

    Parameter default value changed for position #1 ($seed): 0 to <default>

    - srand(int $seed = 0, int $mode = MT_RAND_MT19937): void
    + srand(int $seed = <default>, int $mode = MT_RAND_MT19937): void
  • mt_srand

    Parameter default value changed for position #1 ($seed): 0 to <default>

    - mt_srand(int $seed = 0, int $mode = MT_RAND_MT19937): void
    + mt_srand(int $seed = <default>, int $mode = MT_RAND_MT19937): void

Core

  • get_html_translation_table

    Parameter default value changed for position #2 ($flags): ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401

      get_html_translation_table(
          int $table = HTML_SPECIALCHARS,
    -     int $flags = ENT_COMPAT,
    +     int $flags = ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401,
          string $encoding = "UTF-8"
        ): array
  • stream_select
    • Parameter type changed for parameter #5 ($microseconds): int to ?int
    • Parameter default value changed for position #5 ($microseconds): 0 to null
      stream_select(
          ?array &$read,
          ?array &$write,
          ?array &$except,
          ?int $seconds,
    -     int $microseconds = 0
    +     ?int $microseconds = null
        ): int|false
  • html_entity_decode

    Parameter default value changed for position #2 ($flags): ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401

      html_entity_decode(
          string $string,
    -     int $flags = ENT_COMPAT,
    +     int $flags = ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401,
          ?string $encoding = null
        ): string
  • htmlentities

    Parameter default value changed for position #2 ($flags): ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401

      htmlentities(
          string $string,
    -     int $flags = ENT_COMPAT,
    +     int $flags = ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401,
          ?string $encoding = null,
          bool $double_encode = true
        ): string
  • htmlspecialchars

    Parameter default value changed for position #2 ($flags): ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401

      htmlspecialchars(
          string $string,
    -     int $flags = ENT_COMPAT,
    +     int $flags = ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401,
          ?string $encoding = null,
          bool $double_encode = true
        ): string
  • htmlspecialchars_decode

    Parameter default value changed for position #2 ($flags): ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401

    - htmlspecialchars_decode(string $string, int $flags = ENT_COMPAT): string
    + htmlspecialchars_decode(string $string, int $flags = ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401): string
  • ini_alter

    Parameter type changed for parameter #2 ($value): string to string|int|float|bool|null

    - ini_alter(string $option, string $value): string|false
    + ini_alter(string $option, string|int|float|bool|null $value): string|false
  • ini_set

    Parameter type changed for parameter #2 ($value): string to string|int|float|bool|null

    - ini_set(string $option, string $value): string|false
    + ini_set(string $option, string|int|float|bool|null $value): string|false
  • fputcsv
    • Optional parameter added - #6: string $eol = "\n"
     fputcsv(
         $stream,
         array $fields,
         string $separator = ",",
         string $enclosure = "\"",
    -    string $escape = "\\"
    +    string $escape = "\\",
    +    string $eol = "\n"
       ): int|false

ext-xml

  • xml_parse_into_struct

    Return type changed: int to int|false

      xml_parse_into_struct(
          XMLParser $parser,
          string $data,
          &$values,
          &$index = null
    -   ): int
    +   ): int|false

Changed

Classes

ext-Reflection

ext-SPL

Constants

standard

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.