PHP 8.2 Codex Changelog
| Newly added | Improvements | Changed | Deprecations | Removals | |
|---|---|---|---|---|---|
| INI Directives | 3 | ‧ | ‧ | ‧ | 1 |
| Extensions | 1 | ‧ | ‧ | ‧ | ‧ |
| Constants | 132 | ‧ | 4 | 1 | ‧ |
| Attributes | 2 | ‧ | ‧ | ‧ | ‧ |
| Classes | 9 | ‧ | 6 | ‧ | ‧ |
| Functions | 12 | 48 | 122 | 2 | ‧ |
| Interfaces | 2 | ‧ | ‧ | ‧ | ‧ |
Newly added
INI Directives
Global
mail.mixed_lf_and_crlfINI directive added
oci8.prefetch_lob_sizeINI directive added
error_log_modeINI directive added
Extensions
Global
ext-randomExtension added
Constants
curl
CURLPX_REPLY_ADDRESS_TYPE_NOT_SUPPORTEDConstant added
CURLOPT_XFERINFOFUNCTIONConstant added
CURLPX_RECV_REQACKConstant added
CURLPX_RECV_CONNECTConstant added
CURLPX_RECV_AUTHConstant added
CURLPX_RECV_ADDRESSConstant added
CURLPX_OKConstant added
CURLPX_NO_AUTHConstant added
CURLPX_LONG_USERConstant added
CURLPX_LONG_PASSWDConstant added
CURLPX_LONG_HOSTNAMEConstant added
CURLPX_IDENTD_DIFFERConstant added
CURLPX_IDENTDConstant added
CURLPX_GSSAPI_PROTECTIONConstant added
CURLPX_GSSAPI_PERMSGConstant added
CURLPX_GSSAPIConstant added
CURLPX_CLOSEDConstant added
CURLPX_BAD_VERSIONConstant added
CURLPX_BAD_ADDRESS_TYPEConstant added
CURLPROTO_MQTTConstant added
CURLOPT_SSL_EC_CURVESConstant added
CURLPX_SEND_AUTHConstant added
CURLSSLOPT_REVOKE_BEST_EFFORTConstant added
CURLSSLOPT_NO_PARTIALCHAINConstant added
CURLSSLOPT_NATIVE_CAConstant added
CURLSSLOPT_AUTO_CLIENT_CERTConstant added
CURLPX_USER_REJECTEDConstant added
CURLPX_UNKNOWN_MODEConstant added
CURLPX_UNKNOWN_FAILConstant added
CURLPX_SEND_REQUESTConstant added
CURLPX_SEND_CONNECTConstant added
CURLPX_REPLY_COMMAND_NOT_SUPPORTEDConstant added
CURLPX_RESOLVE_HOSTConstant added
CURLPX_REQUEST_FAILEDConstant added
CURLPX_REPLY_UNASSIGNEDConstant added
CURLPX_REPLY_TTL_EXPIREDConstant added
CURLPX_REPLY_NOT_ALLOWEDConstant added
CURLPX_REPLY_NETWORK_UNREACHABLEConstant added
CURLPX_REPLY_HOST_UNREACHABLEConstant added
CURLPX_REPLY_GENERAL_SERVER_FAILUREConstant added
CURLPX_REPLY_CONNECTION_REFUSEDConstant added
CURLALTSVC_READONLYFILEConstant added
CURLINFO_RETRY_AFTERConstant added
CURLINFO_REFERERConstant added
CURLINFO_PROXY_ERRORConstant added
CURLINFO_EFFECTIVE_METHODConstant added
CURLHSTS_READONLYFILEConstant added
CURLHSTS_ENABLEConstant added
CURLFTPMETHOD_DEFAULTConstant added
CURLE_PROXYConstant added
CURLAUTH_AWS_SIGV4Constant added
CURLOPT_UPKEEP_INTERVAL_MSConstant added
CURLALTSVC_H3Constant added
CURLALTSVC_H2Constant added
CURLALTSVC_H1Constant added
CURL_VERSION_ZSTDConstant added
CURL_VERSION_UNICODEConstant added
CURL_VERSION_HTTP3Constant added
CURL_VERSION_HSTSConstant added
CURL_VERSION_GSASLConstant added
CURLOPT_ALTSVCConstant added
CURLOPT_UPLOAD_BUFFERSIZEConstant added
CURLOPT_SSH_HOST_PUBLIC_KEY_SHA256Constant added
CURLOPT_SASL_AUTHZIDConstant added
CURLOPT_PROXY_CAINFO_BLOBConstant added
CURLOPT_MAXLIFETIME_CONNConstant added
CURLOPT_MAXFILESIZE_LARGEConstant added
CURLOPT_MAXAGE_CONNConstant added
CURLOPT_MAIL_RCPT_ALLLOWFAILSConstant added
CURLOPT_HSTS_CTRLConstant added
CURLOPT_HSTSConstant added
CURLOPT_DOH_SSL_VERIFYSTATUSConstant added
CURLOPT_DOH_SSL_VERIFYPEERConstant added
CURLOPT_DOH_SSL_VERIFYHOSTConstant added
CURLOPT_CAINFO_BLOBConstant added
CURLOPT_AWS_SIGV4Constant added
CURLOPT_ALTSVC_CTRLConstant added
CURLMOPT_MAX_CONCURRENT_STREAMSConstant added
date
DATE_ISO8601_EXPANDEDConstant added
dba
DBA_LMDB_NO_SUB_DIRConstant added
DBA_LMDB_USE_SUB_DIRConstant added
fileinfo
FILEINFO_APPLEConstant added
filter
FILTER_FLAG_GLOBAL_RANGEConstant added
sockets
TCP_CONGESTIONConstant added
TCP_KEEPCNTConstant added
TCP_KEEPIDLEConstant added
SKF_AD_PKTTYPEConstant added
TCP_NOTSENT_LOWATConstant added
TCP_KEEPINTVLConstant added
SO_MEMINFOConstant added
MSG_ZEROCOPYConstant added
SO_ZEROCOPYConstant added
SKF_AD_ALU_XOR_XConstant added
SKF_AD_CPUConstant added
SKF_AD_HATYPEConstant added
SKF_AD_IFINDEXConstant added
SKF_AD_MARKConstant added
SKF_AD_MAXConstant added
SKF_AD_NLATTRConstant added
SKF_AD_NLATTR_NESTConstant added
SKF_AD_OFFConstant added
SKF_AD_PROTOCOLConstant added
SKF_AD_QUEUEConstant added
SKF_AD_RANDOMConstant added
SKF_AD_RXHASHConstant added
SKF_AD_VLAN_TAGConstant added
SKF_AD_VLAN_TAG_PRESENTConstant added
SKF_AD_VLAN_TPIDConstant added
SO_BPF_EXTENSIONSConstant added
SO_INCOMING_CPUConstant added
SKF_AD_PAY_OFFSETConstant added
standard
INT_FRAC_DIGITSConstant added
NOSTRConstant added
NEGATIVE_SIGNConstant added
N_SIGN_POSNConstant added
N_SEP_BY_SPACEConstant added
N_CS_PRECEDESConstant added
MON_DECIMAL_POINTConstant added
MON_GROUPINGConstant added
MON_THOUSANDS_SEPConstant added
YESSTRConstant added
INT_CURR_SYMBOLConstant added
GROUPINGConstant added
FRAC_DIGITSConstant added
ERA_YEARConstant added
DECIMAL_POINTConstant added
THOUSANDS_SEPConstant added
CURRENCY_SYMBOLConstant added
P_CS_PRECEDESConstant added
P_SEP_BY_SPACEConstant added
P_SIGN_POSNConstant added
POSITIVE_SIGNConstant added
Attributes
Core
AllowDynamicPropertiesAttribute added
SensitiveParameterAttribute added
Classes
Core
SensitiveParameterValueClass added
ext-random
Random\RandomizerClass added
Random\RandomExceptionException class added
Random\RandomErrorException class added
Random\Engine\Xoshiro256StarStarClass added
Random\Engine\SecureClass added
Random\Engine\PcgOneseq128XslRr64Class added
Random\Engine\Mt19937Class added
Random\BrokenRandomEngineErrorException class added
Functions
ext-curl
curl_upkeepFunction added
ext-imap
imap_is_openFunction added
ext-libxml
libxml_get_external_entity_loaderFunction added
ext-mysqli
mysqli_execute_queryFunction added
ext-oci8
oci_set_prefetch_lobFunction added
ext-odbc
odbc_connection_string_is_quotedFunction added
odbc_connection_string_quoteFunction added
odbc_connection_string_should_quoteFunction added
ext-openssl
openssl_cipher_key_lengthFunction added
ext-sodium
sodium_crypto_stream_xchacha20_xor_icFunction added
Core
memory_reset_peak_usageFunction added
ini_parse_quantityFunction added
Interfaces
ext-random
Random\EngineInterface added
Random\CryptoSafeEngineInterface added
Removals
INI Directives
Global
mysqli.reconnectINI directive removed
Changed
Classes
Core
InternalIteratorCloning class objects is no longer allowed
ext-oci8
ext-soap
SoapServerCloning class objects is no longer allowed
Core
Functions
ext-ftp
ftp_loginAttribute added for parameter
$password:#[SensitiveParameter]
ext-hash
hash_pbkdf2Attribute added for parameter
$password:#[SensitiveParameter]hash_hmac_fileAttribute added for parameter
$key:#[SensitiveParameter]HASH_HMACAttribute added for parameter
$key:#[SensitiveParameter]hash_hkdfAttribute added for parameter
$key:#[SensitiveParameter]hash_equals- Attribute added for parameter
$known_string:#[SensitiveParameter] - Attribute added for parameter
$user_string:#[SensitiveParameter]
hash_initAttribute added for parameter
$key:#[SensitiveParameter]ext-imap
imap_openAttribute added for parameter
$password:#[SensitiveParameter]
ext-ldap
ldap_sasl_bindAttribute added for parameter
$password:#[SensitiveParameter]ldap_exop_passwd- Attribute added for parameter
$old_password:#[SensitiveParameter] - Attribute added for parameter
$new_password:#[SensitiveParameter]
ldap_bind_extAttribute added for parameter
$password:#[SensitiveParameter]ldap_bindAttribute added for parameter
$password:#[SensitiveParameter]ext-mysqli
mysqli_change_userAttribute added for parameter
$password:#[SensitiveParameter]mysqli_connectAttribute added for parameter
$password:#[SensitiveParameter]mysqli_real_connectAttribute added for parameter
$password:#[SensitiveParameter]
ext-oci8
oci_connectAttribute added for parameter
$password:#[SensitiveParameter]oci_new_connectAttribute added for parameter
$password:#[SensitiveParameter]oci_pconnectAttribute added for parameter
$password:#[SensitiveParameter]ociplogonAttribute added for parameter
$password:#[SensitiveParameter]ocinlogonAttribute added for parameter
$password:#[SensitiveParameter]ocilogonAttribute added for parameter
$password:#[SensitiveParameter]
ext-odbc
odbc_pconnectAttribute added for parameter
$password:#[SensitiveParameter]odbc_connectAttribute added for parameter
$password:#[SensitiveParameter]
ext-openssl
openssl_pbkdf2Attribute added for parameter
$password:#[SensitiveParameter]openssl_private_decrypt- Attribute added for parameter
$decrypted_data:#[SensitiveParameter] - Attribute added for parameter
$private_key:#[SensitiveParameter]
openssl_pkey_get_private- Attribute added for parameter
$private_key:#[SensitiveParameter] - Attribute added for parameter
$passphrase:#[SensitiveParameter]
openssl_pkey_export_to_file- Attribute added for parameter
$key:#[SensitiveParameter] - Attribute added for parameter
$passphrase:#[SensitiveParameter]
openssl_pkey_export- Attribute added for parameter
$key:#[SensitiveParameter] - Attribute added for parameter
$passphrase:#[SensitiveParameter]
openssl_pkey_deriveAttribute added for parameter
$private_key:#[SensitiveParameter]openssl_pkcs7_signAttribute added for parameter
$private_key:#[SensitiveParameter]openssl_pkcs7_decrypt- Attribute added for parameter
$certificate:#[SensitiveParameter] - Attribute added for parameter
$private_key:#[SensitiveParameter]
openssl_pkcs12_readAttribute added for parameter
$passphrase:#[SensitiveParameter]openssl_pkcs12_export_to_file- Attribute added for parameter
$private_key:#[SensitiveParameter] - Attribute added for parameter
$passphrase:#[SensitiveParameter]
openssl_pkcs12_export- Attribute added for parameter
$private_key:#[SensitiveParameter] - Attribute added for parameter
$passphrase:#[SensitiveParameter]
openssl_private_encrypt- Attribute added for parameter
$data:#[SensitiveParameter] - Attribute added for parameter
$private_key:#[SensitiveParameter]
openssl_open- Attribute added for parameter
$output:#[SensitiveParameter] - Attribute added for parameter
$private_key:#[SensitiveParameter]
openssl_get_privatekey- Attribute added for parameter
$private_key:#[SensitiveParameter] - Attribute added for parameter
$passphrase:#[SensitiveParameter]
openssl_cms_decrypt- Attribute added for parameter
$certificate:#[SensitiveParameter] - Attribute added for parameter
$private_key:#[SensitiveParameter]
openssl_cms_signAttribute added for parameter
$private_key:#[SensitiveParameter]openssl_csr_signAttribute added for parameter
$private_key:#[SensitiveParameter]openssl_decryptAttribute added for parameter
$passphrase:#[SensitiveParameter]openssl_dh_compute_keyAttribute added for parameter
$private_key:#[SensitiveParameter]openssl_encrypt- Attribute added for parameter
$data:#[SensitiveParameter] - Attribute added for parameter
$passphrase:#[SensitiveParameter]
openssl_public_decryptAttribute added for parameter
$decrypted_data:#[SensitiveParameter]openssl_public_encryptAttribute added for parameter
$data:#[SensitiveParameter]openssl_sealAttribute added for parameter
$data:#[SensitiveParameter]openssl_signAttribute added for parameter
$private_key:#[SensitiveParameter]openssl_spki_newAttribute added for parameter
$private_key:#[SensitiveParameter]openssl_x509_check_private_keyAttribute added for parameter
$private_key:#[SensitiveParameter]ext-random
ext-sodium
sodium_crypto_aead_xchacha20poly1305_ietf_decryptAttribute added for parameter
$key:#[SensitiveParameter]sodium_crypto_aead_aes256gcm_encrypt- Attribute added for parameter
$message:#[SensitiveParameter] - Attribute added for parameter
$key:#[SensitiveParameter]
sodium_crypto_aead_chacha20poly1305_decryptAttribute added for parameter
$key:#[SensitiveParameter]sodium_crypto_aead_chacha20poly1305_encrypt- Attribute added for parameter
$message:#[SensitiveParameter] - Attribute added for parameter
$key:#[SensitiveParameter]
sodium_crypto_aead_chacha20poly1305_ietf_decryptAttribute added for parameter
$key:#[SensitiveParameter]sodium_crypto_aead_chacha20poly1305_ietf_encrypt- Attribute added for parameter
$message:#[SensitiveParameter] - Attribute added for parameter
$key:#[SensitiveParameter]
sodium_compare- Attribute added for parameter
$string1:#[SensitiveParameter] - Attribute added for parameter
$string2:#[SensitiveParameter]
sodium_crypto_aead_xchacha20poly1305_ietf_encrypt- Attribute added for parameter
$message:#[SensitiveParameter] - Attribute added for parameter
$key:#[SensitiveParameter]
sodium_crypto_authAttribute added for parameter
$key:#[SensitiveParameter]sodium_crypto_auth_verifyAttribute added for parameter
$key:#[SensitiveParameter]sodium_crypto_box- Attribute added for parameter
$message:#[SensitiveParameter] - Attribute added for parameter
$key_pair:#[SensitiveParameter]
sodium_crypto_box_keypair_from_secretkey_and_publickeyAttribute added for parameter
$secret_key:#[SensitiveParameter]sodium_crypto_box_openAttribute added for parameter
$key_pair:#[SensitiveParameter]sodium_crypto_aead_aes256gcm_decryptAttribute added for parameter
$key:#[SensitiveParameter]sodium_crypto_box_publickeyAttribute added for parameter
$key_pair:#[SensitiveParameter]sodium_bin2hexAttribute added for parameter
$string:#[SensitiveParameter]sodium_bin2base64Attribute added for parameter
$string:#[SensitiveParameter]sodium_base642binAttribute added for parameter
$string:#[SensitiveParameter]sodium_crypto_sign_detachedAttribute added for parameter
$secret_key:#[SensitiveParameter]sodium_crypto_sign_ed25519_sk_to_curve25519Attribute added for parameter
$secret_key:#[SensitiveParameter]sodium_crypto_sign_keypair_from_secretkey_and_publickeyAttribute added for parameter
$secret_key:#[SensitiveParameter]sodium_crypto_sign_publickeyAttribute added for parameter
$key_pair:#[SensitiveParameter]sodium_crypto_sign_publickey_from_secretkeyAttribute added for parameter
$secret_key:#[SensitiveParameter]sodium_crypto_sign_secretkeyAttribute added for parameter
$key_pair:#[SensitiveParameter]sodium_crypto_sign_seed_keypairAttribute added for parameter
$seed:#[SensitiveParameter]sodium_crypto_streamAttribute added for parameter
$key:#[SensitiveParameter]sodium_crypto_stream_xchacha20Attribute added for parameter
$key:#[SensitiveParameter]sodium_crypto_kx_server_session_keysAttribute added for parameter
$server_key_pair:#[SensitiveParameter]sodium_crypto_signAttribute added for parameter
$secret_key:#[SensitiveParameter]sodium_crypto_shorthashAttribute added for parameter
$key:#[SensitiveParameter]sodium_crypto_secretstream_xchacha20poly1305_pushAttribute added for parameter
$message:#[SensitiveParameter]sodium_crypto_secretstream_xchacha20poly1305_init_pushAttribute added for parameter
$key:#[SensitiveParameter]sodium_crypto_secretstream_xchacha20poly1305_init_pullAttribute added for parameter
$key:#[SensitiveParameter]sodium_crypto_secretbox_openAttribute added for parameter
$key:#[SensitiveParameter]sodium_crypto_secretbox- Attribute added for parameter
$message:#[SensitiveParameter] - Attribute added for parameter
$key:#[SensitiveParameter]
sodium_crypto_scalarmult_baseAttribute added for parameter
$secret_key:#[SensitiveParameter]sodium_crypto_pwhash_str_verifyAttribute added for parameter
$password:#[SensitiveParameter]sodium_crypto_pwhash_strAttribute added for parameter
$password:#[SensitiveParameter]sodium_crypto_pwhash_scryptsalsa208sha256_str_verifyAttribute added for parameter
$password:#[SensitiveParameter]sodium_crypto_pwhash_scryptsalsa208sha256_strAttribute added for parameter
$password:#[SensitiveParameter]sodium_crypto_pwhash_scryptsalsa208sha256Attribute added for parameter
$password:#[SensitiveParameter]sodium_crypto_pwhashAttribute added for parameter
$password:#[SensitiveParameter]sodium_crypto_kx_seed_keypairAttribute added for parameter
$seed:#[SensitiveParameter]sodium_crypto_kx_secretkeyAttribute added for parameter
$key_pair:#[SensitiveParameter]sodium_crypto_kx_publickeyAttribute added for parameter
$key_pair:#[SensitiveParameter]sodium_crypto_kx_client_session_keysAttribute added for parameter
$client_key_pair:#[SensitiveParameter]sodium_crypto_kdf_derive_from_keyAttribute added for parameter
$key:#[SensitiveParameter]sodium_crypto_generichash_initAttribute added for parameter
$key:#[SensitiveParameter]sodium_crypto_generichashAttribute added for parameter
$key:#[SensitiveParameter]sodium_crypto_box_seed_keypairAttribute added for parameter
$seed:#[SensitiveParameter]sodium_crypto_box_secretkeyAttribute added for parameter
$key_pair:#[SensitiveParameter]sodium_crypto_box_seal_openAttribute added for parameter
$key_pair:#[SensitiveParameter]sodium_crypto_box_sealAttribute added for parameter
$message:#[SensitiveParameter]sodium_crypto_box_publickey_from_secretkeyAttribute added for parameter
$secret_key:#[SensitiveParameter]sodium_crypto_stream_xchacha20_xor- Attribute added for parameter
$message:#[SensitiveParameter] - Attribute added for parameter
$key:#[SensitiveParameter]
sodium_unpadAttribute added for parameter
$string:#[SensitiveParameter]sodium_padAttribute added for parameter
$string:#[SensitiveParameter]sodium_memzeroAttribute added for parameter
$string:#[SensitiveParameter]sodium_memcmp- Attribute added for parameter
$string1:#[SensitiveParameter] - Attribute added for parameter
$string2:#[SensitiveParameter]
sodium_hex2binAttribute added for parameter
$string:#[SensitiveParameter]sodium_crypto_stream_xor- Attribute added for parameter
$message:#[SensitiveParameter] - Attribute added for parameter
$key:#[SensitiveParameter]
Core
cryptAttribute added for parameter
$string:#[SensitiveParameter]password_verifyAttribute added for parameter
$password:#[SensitiveParameter]password_hashAttribute added for parameter
$password:#[SensitiveParameter]
Constants
imap
SO_NOSERVERConstant value changed from
16to8
pcntl
FPE_FLTUNDConstant value changed from
7to5
random
MT_RAND_MT19937Constant moved from
standardextension torandomextensionMT_RAND_PHPConstant moved from
standardextension torandomextension
Improvements
Functions
Core
restore_exception_handlerReturn type changed:
booltotrue- restore_exception_handler(): bool + restore_exception_handler(): truerestore_error_handlerReturn type changed:
booltotrue- restore_error_handler(): bool + restore_error_handler(): true
ext-dba
dba_deleteParameter type added for parameter #1 (
$key):array|string- dba_delete($key, $dba): bool + dba_delete(array|string $key, $dba): booldba_replaceParameter type added for parameter #1 (
$key):array|stringdba_replace( - $key, + array|string $key, string $value, $dba ): booldba_popen- Optional parameter added - #5:
int $map_size = 0 - Optional parameter added - #6:
?int $flags = null
dba_popen( - $path, - $mode, - $handler = <default>, - ...$handler_params + string $path, + string $mode, + ?string $handler = null, + int $permission = 0644, + int $map_size = 0, + ?int $flags = null )dba_open- Optional parameter added - #5:
int $map_size = 0 - Optional parameter added - #6:
?int $flags = null
dba_open( - $path, - $mode, - $handler = <default>, - ...$handler_params + string $path, + string $mode, + ?string $handler = null, + int $permission = 0644, + int $map_size = 0, + ?int $flags = null )dba_insertParameter type added for parameter #1 (
$key):array|stringdba_insert( - $key, + array|string $key, string $value, $dba ): booldba_fetch- Parameter type added for parameter #1 (
$key):array|string - Parameter name of parameter #2 changed:
$skipto$dba - Parameter name of parameter #3 changed:
$dbato$skip - Parameter default value changed for position #3 (
$skip):<default>to0
dba_fetch( - $key, + array|string $key, - $skip, + $dba, - $dba = <default> + $skip = 0 ): string|falsedba_existsParameter type added for parameter #1 (
$key):array|string- dba_exists($key, $dba): bool + dba_exists(array|string $key, $dba): boolext-dom
dom_import_simplexmlReturn type changed:
DOMElementtoDOMAttr|DOMElement- dom_import_simplexml(object $node): DOMElement + dom_import_simplexml(object $node): DOMAttr|DOMElement
ext-gd
imagecolorsetReturn type changed:
?boolto?falseimagecolorset( GdImage $image, int $color, int $red, int $green, int $blue, int $alpha = 0 - ): ?bool + ): ?false
ext-mbstring
mb_get_infoReturn type changed:
array|string|int|falsetoarray|string|int|false|null- mb_get_info(string $type = "all"): array|string|int|false + mb_get_info(string $type = "all"): array|string|int|false|null
ext-mysqli
mysqli_stmt_closeReturn type changed:
booltotrue- mysqli_stmt_close(mysqli_stmt $statement): bool + mysqli_stmt_close(mysqli_stmt $statement): truemysqli_closeReturn type changed:
booltotrue- mysqli_close(mysqli $mysql): bool + mysqli_close(mysqli $mysql): truemysqli_debugReturn type changed:
booltotrue- mysqli_debug(string $options): bool + mysqli_debug(string $options): truemysqli_ssl_setReturn type changed:
booltotruemysqli_ssl_set( mysqli $mysql, ?string $key, ?string $certificate, ?string $ca_certificate, ?string $ca_path, ?string $cipher_algos - ): bool + ): true
ext-openssl
openssl_csr_new- Return type changed:
OpenSSLCertificateSigningRequest|falsetoOpenSSLCertificateSigningRequest|bool - Attribute added for parameter
$private_key:#[SensitiveParameter]
openssl_csr_new( array $distinguished_names, &$private_key, ?array $options = null, ?array $extra_attributes = null - ): OpenSSLCertificateSigningRequest|false + ): OpenSSLCertificateSigningRequest|boolext-sodium
sodium_crypto_generichash_updateReturn type changed:
booltotrue- sodium_crypto_generichash_update(string &$state, string $message): bool + sodium_crypto_generichash_update(string &$state, string $message): true
ext-SPL
iterator_to_arrayParameter type changed for parameter #1 (
$iterator):TraversabletoTraversable|array- iterator_to_array(Traversable $iterator, bool $preserve_keys = true): array + iterator_to_array(Traversable|array $iterator, bool $preserve_keys = true): arrayiterator_countParameter type changed for parameter #1 (
$iterator):TraversabletoTraversable|array- iterator_count(Traversable $iterator): int + iterator_count(Traversable|array $iterator): int
Core
ksortReturn type changed:
booltotrue- ksort(array &$array, int $flags = SORT_REGULAR): bool + ksort(array &$array, int $flags = SORT_REGULAR): truekrsortReturn type changed:
booltotrue- krsort(array &$array, int $flags = SORT_REGULAR): bool + krsort(array &$array, int $flags = SORT_REGULAR): truephpinfoReturn type changed:
booltotrue- phpinfo(int $flags = INFO_ALL): bool + phpinfo(int $flags = INFO_ALL): truephpcreditsReturn type changed:
booltotrue- phpcredits(int $flags = CREDITS_ALL): bool + phpcredits(int $flags = CREDITS_ALL): truepassthruReturn type changed:
?boolto?false- passthru(string $command, &$result_code = null): ?bool + passthru(string $command, &$result_code = null): ?falseusortReturn type changed:
booltotrue- usort(array &$array, callable $callback): bool + usort(array &$array, callable $callback): trueuksortReturn type changed:
booltotrue- uksort(array &$array, callable $callback): bool + uksort(array &$array, callable $callback): trueuasortReturn type changed:
booltotrue- uasort(array &$array, callable $callback): bool + uasort(array &$array, callable $callback): trueopenlogReturn type changed:
booltotrueopenlog( string $prefix, int $flags, int $facility - ): bool + ): truesortReturn type changed:
booltotrue- sort(array &$array, int $flags = SORT_REGULAR): bool + sort(array &$array, int $flags = SORT_REGULAR): truearray_walkReturn type changed:
booltotruearray_walk( object|array &$array, callable $callback, mixed $arg = <default> - ): bool + ): truesyslogReturn type changed:
booltotrue- syslog(int $priority, string $message): bool + syslog(int $priority, string $message): trueshuffleReturn type changed:
booltotrue- shuffle(array &$array): bool + shuffle(array &$array): truearray_walk_recursiveReturn type changed:
booltotruearray_walk_recursive( object|array &$array, callable $callback, mixed $arg = <default> - ): bool + ): trueregister_shutdown_functionReturn type changed:
?booltovoid- register_shutdown_function(callable $callback, mixed ...$args): ?bool + register_shutdown_function(callable $callback, mixed ...$args): voidcloselogReturn type changed:
booltotrue- closelog(): bool + closelog(): trueasortReturn type changed:
booltotrue- asort(array &$array, int $flags = SORT_REGULAR): bool + asort(array &$array, int $flags = SORT_REGULAR): truearsortReturn type changed:
booltotrue- arsort(array &$array, int $flags = SORT_REGULAR): bool + arsort(array &$array, int $flags = SORT_REGULAR): true
ext-xml
xml_set_end_namespace_decl_handlerReturn type changed:
booltotrue- xml_set_end_namespace_decl_handler(XMLParser $parser, $handler): bool + xml_set_end_namespace_decl_handler(XMLParser $parser, $handler): truexml_set_character_data_handlerReturn type changed:
booltotrue- xml_set_character_data_handler(XMLParser $parser, $handler): bool + xml_set_character_data_handler(XMLParser $parser, $handler): truexml_set_default_handlerReturn type changed:
booltotrue- xml_set_default_handler(XMLParser $parser, $handler): bool + xml_set_default_handler(XMLParser $parser, $handler): truexml_set_element_handlerReturn type changed:
booltotruexml_set_element_handler( XMLParser $parser, $start_handler, $end_handler - ): bool + ): truexml_set_objectReturn type changed:
booltotrue- xml_set_object(XMLParser $parser, object $object): bool + xml_set_object(XMLParser $parser, object $object): truexml_set_processing_instruction_handlerReturn type changed:
booltotrue- xml_set_processing_instruction_handler(XMLParser $parser, $handler): bool + xml_set_processing_instruction_handler(XMLParser $parser, $handler): truexml_set_notation_decl_handlerReturn type changed:
booltotrue- xml_set_notation_decl_handler(XMLParser $parser, $handler): bool + xml_set_notation_decl_handler(XMLParser $parser, $handler): truexml_set_unparsed_entity_decl_handlerReturn type changed:
booltotrue- xml_set_unparsed_entity_decl_handler(XMLParser $parser, $handler): bool + xml_set_unparsed_entity_decl_handler(XMLParser $parser, $handler): truexml_set_start_namespace_decl_handlerReturn type changed:
booltotrue- xml_set_start_namespace_decl_handler(XMLParser $parser, $handler): bool + xml_set_start_namespace_decl_handler(XMLParser $parser, $handler): truexml_set_external_entity_ref_handlerReturn type changed:
booltotrue- xml_set_external_entity_ref_handler(XMLParser $parser, $handler): bool + xml_set_external_entity_ref_handler(XMLParser $parser, $handler): true
Deprecations
Functions
Core
utf8_encodeFunction deprecated
utf8_decodeFunction deprecated
Constants
mysqli
MYSQLI_IS_MARIADBConstant deprecated
var_dump(MYSQLI_IS_MARIADB); //Constant MYSQLI_IS_MARIADB is deprecated
Subscribe to PHP.Watch newsletter for monthly updatesYou 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.
- Return type changed:
- Optional parameter added - #5:
- Attribute added for parameter
- Attribute added for parameter
- Attribute added for parameter
- Attribute added for parameter