PHP 7.4 Codex Changelog
| Newly added | Improvements | Changed | Deprecations | Removals | |
|---|---|---|---|---|---|
| INI Directives | 7 | ‧ | 1 | ‧ | 10 |
| Extensions | 1 | ‧ | ‧ | ‧ | 3 |
| Constants | 49 | ‧ | 9 | ‧ | 66 |
| Functions | 7 | 11 | ‧ | 10 | 105 |
| Classes | 7 | ‧ | 2 | ‧ | ‧ |
Newly added
INI Directives
Global
zend.exception_ignore_argsINI directive added
ffi.enableINI directive added
ffi.preloadINI directive added
mbstring.regex_retry_limitINI directive added
opcache.preloadINI directive added
opcache.preload_userINI directive added
unserialize_max_depthINI directive added
Extensions
Global
ext-FFIExtension added
Constants
Core
PHP_CLI_PROCESS_TITLEConstant added
gd
IMG_TGAConstant added
IMG_FILTER_SCATTERConstant added
hash
MHASH_CRC32CConstant added
mbstring
MB_ONIGURUMA_VERSIONConstant added
pcntl
CLONE_NEWUSERConstant added
CLONE_NEWPIDConstant added
CLONE_NEWUTSConstant added
CLONE_NEWNSConstant added
CLONE_NEWNETConstant added
PCNTL_EUSERSConstant added
PCNTL_ENOSPCConstant added
CLONE_NEWIPCConstant added
CLONE_NEWCGROUPConstant added
standard
PASSWORD_ARGON2_PROVIDERConstant added
STREAM_CRYPTO_METHOD_TLSv1_3_CLIENTConstant added
STREAM_CRYPTO_METHOD_TLSv1_3_SERVERConstant added
STREAM_CRYPTO_PROTO_TLSv1_3Constant added
tidy
TIDY_TAG_MARKConstant added
TIDY_TAG_VIDEOConstant added
TIDY_TAG_TRACKConstant added
TIDY_TAG_TIMEConstant added
TIDY_TAG_TEMPLATEConstant added
TIDY_TAG_SUMMARYConstant added
TIDY_TAG_SOURCEConstant added
TIDY_TAG_SECTIONConstant added
TIDY_TAG_PROGRESSConstant added
TIDY_TAG_OUTPUTConstant added
TIDY_TAG_NAVConstant added
TIDY_TAG_MENUITEMConstant added
TIDY_TAG_ARTICLEConstant added
TIDY_TAG_ASIDEConstant added
TIDY_TAG_AUDIOConstant added
TIDY_TAG_BDIConstant added
TIDY_TAG_CANVASConstant added
TIDY_TAG_COMMANDConstant added
TIDY_TAG_DATALISTConstant added
TIDY_TAG_DETAILSConstant added
TIDY_TAG_DIALOGConstant added
TIDY_TAG_FIGCAPTIONConstant added
TIDY_TAG_FIGUREConstant added
TIDY_TAG_FOOTERConstant added
TIDY_TAG_HEADERConstant added
TIDY_TAG_HGROUPConstant added
TIDY_TAG_MAINConstant added
TIDY_TAG_METERConstant added
tokenizer
T_COALESCE_EQUALConstant added
T_BAD_CHARACTERConstant added
T_FNConstant added
Functions
Core
get_mangled_object_varsFunction added
ext-gd
imagecreatefromtgaFunction added
ext-mbstring
mb_str_splitFunction added
ext-openssl
openssl_x509_verifyFunction added
ext-pcntl
pcntl_unshareFunction added
ext-readline
readline_list_historyFunction added
Core
password_algosFunction added
Classes
Core
WeakReferenceClass added
ext-FFI
FFI\ExceptionException class added
FFI\ParserExceptionException class added
FFI\CTypeClass added
FFI\CDataClass added
FFIClass added
ext-Reflection
ReflectionReferenceClass added
Removals
INI Directives
Global
ibase.allow_persistentINI directive removed
ibase.dateformatINI directive removed
ibase.default_charsetINI directive removed
ibase.default_dbINI directive removed
ibase.default_passwordINI directive removed
ibase.default_userINI directive removed
ibase.max_linksINI directive removed
ibase.max_persistentINI directive removed
ibase.timeformatINI directive removed
ibase.timestampformatINI directive removed
Extensions
Global
ext-recodeExtension removed
ext-interbaseExtension removed
ext-wddxExtension removed
Functions
ext-interbase
ibase_errmsgFunction removed
ibase_commitFunction removed
ibase_closeFunction removed
ibase_commit_retFunction removed
ibase_connectFunction removed
ibase_db_infoFunction removed
ibase_delete_userFunction removed
ibase_drop_dbFunction removed
ibase_errcodeFunction removed
ibase_blob_addFunction removed
ibase_blob_openFunction removed
ibase_blob_infoFunction removed
ibase_blob_importFunction removed
ibase_blob_getFunction removed
ibase_blob_echoFunction removed
ibase_blob_createFunction removed
ibase_blob_closeFunction removed
ibase_blob_cancelFunction removed
ibase_queryFunction removed
ibase_num_paramsFunction removed
ibase_wait_eventFunction removed
ibase_transFunction removed
ibase_set_event_handlerFunction removed
ibase_service_detachFunction removed
ibase_service_attachFunction removed
ibase_server_infoFunction removed
ibase_rollback_retFunction removed
ibase_rollbackFunction removed
ibase_restoreFunction removed
ibase_prepareFunction removed
ibase_pconnectFunction removed
ibase_param_infoFunction removed
ibase_executeFunction removed
ibase_num_fieldsFunction removed
ibase_name_resultFunction removed
ibase_modify_userFunction removed
ibase_maintain_dbFunction removed
ibase_gen_idFunction removed
ibase_free_resultFunction removed
ibase_free_queryFunction removed
ibase_free_event_handlerFunction removed
ibase_field_infoFunction removed
ibase_fetch_rowFunction removed
ibase_fetch_objectFunction removed
ibase_fetch_assocFunction removed
fbird_field_infoFunction removed
fbird_backupFunction removed
fbird_affected_rowsFunction removed
fbird_add_userFunction removed
fbird_errmsgFunction removed
fbird_executeFunction removed
fbird_fetch_assocFunction removed
fbird_fetch_objectFunction removed
fbird_fetch_rowFunction removed
fbird_blob_addFunction removed
fbird_free_event_handlerFunction removed
fbird_free_queryFunction removed
fbird_free_resultFunction removed
fbird_gen_idFunction removed
fbird_maintain_dbFunction removed
fbird_name_resultFunction removed
fbird_num_fieldsFunction removed
fbird_blob_openFunction removed
fbird_errcodeFunction removed
fbird_drop_dbFunction removed
fbird_delete_userFunction removed
fbird_db_infoFunction removed
fbird_connectFunction removed
fbird_commit_retFunction removed
fbird_commitFunction removed
fbird_closeFunction removed
fbird_modify_userFunction removed
fbird_blob_infoFunction removed
fbird_blob_importFunction removed
fbird_blob_getFunction removed
fbird_blob_echoFunction removed
fbird_blob_createFunction removed
fbird_blob_closeFunction removed
fbird_blob_cancelFunction removed
fbird_rollbackFunction removed
fbird_service_attachFunction removed
fbird_server_infoFunction removed
fbird_service_detachFunction removed
fbird_set_event_handlerFunction removed
fbird_transFunction removed
fbird_wait_eventFunction removed
ibase_add_userFunction removed
fbird_rollback_retFunction removed
ibase_affected_rowsFunction removed
fbird_restoreFunction removed
fbird_queryFunction removed
fbird_prepareFunction removed
fbird_pconnectFunction removed
ibase_backupFunction removed
fbird_param_infoFunction removed
fbird_num_paramsFunction removed
ext-recode
recodeFunction removed
recode_fileFunction removed
recode_stringFunction removed
ext-wddx
wddx_add_varsFunction removed
wddx_deserializeFunction removed
wddx_packet_endFunction removed
wddx_packet_startFunction removed
wddx_serialize_valueFunction removed
wddx_serialize_varsFunction removed
Constants
interbase
IBASE_PRP_DENY_NEW_ATTACHMENTSConstant removed
IBASE_FETCH_BLOBSConstant removed
IBASE_NOWAITConstant removed
IBASE_PRP_ACCESS_MODEConstant removed
IBASE_PRP_ACTIVATEConstant removed
IBASE_PRP_AM_READONLYConstant removed
IBASE_PRP_AM_READWRITEConstant removed
IBASE_PRP_DB_ONLINEConstant removed
IBASE_PRP_RESConstant removed
IBASE_PRP_DENY_NEW_TRANSACTIONSConstant removed
IBASE_PRP_PAGE_BUFFERSConstant removed
IBASE_RES_ONE_AT_A_TIMEConstant removed
IBASE_FETCH_ARRAYSConstant removed
IBASE_DEFAULTConstant removed
IBASE_CREATEConstant removed
IBASE_CONSISTENCYConstant removed
IBASE_CONCURRENCYConstant removed
IBASE_COMMITTEDConstant removed
IBASE_BKP_CONVERTConstant removed
IBASE_BKP_OLD_DESCRIPTIONSConstant removed
IBASE_BKP_NON_TRANSPORTABLEConstant removed
IBASE_BKP_NO_GARBAGE_COLLECTConstant removed
IBASE_BKP_METADATA_ONLYConstant removed
IBASE_BKP_IGNORE_LIMBOConstant removed
IBASE_BKP_IGNORE_CHECKSUMSConstant removed
IBASE_RPR_MEND_DBConstant removed
IBASE_SVC_GET_ENVConstant removed
IBASE_STS_SYS_RELATIONSConstant removed
IBASE_STS_IDX_PAGESConstant removed
IBASE_STS_HDR_PAGESConstant removed
IBASE_STS_DB_LOGConstant removed
IBASE_STS_DATA_PAGESConstant removed
IBASE_READConstant removed
IBASE_REC_NO_VERSIONConstant removed
IBASE_REC_VERSIONConstant removed
IBASE_RPR_VALIDATE_DBConstant removed
IBASE_RPR_SWEEP_DBConstant removed
IBASE_PRP_RESERVE_SPACEConstant removed
IBASE_RPR_KILL_SHADOWSConstant removed
IBASE_RPR_IGNORE_CHECKSUMConstant removed
IBASE_RPR_FULLConstant removed
IBASE_RPR_CHECK_DBConstant removed
IBASE_RES_CREATEConstant removed
IBASE_RES_DEACTIVATE_IDXConstant removed
IBASE_RES_NO_SHADOWConstant removed
IBASE_RES_USE_ALL_SPACEConstant removed
IBASE_RES_REPLACEConstant removed
IBASE_RES_NO_VALIDITYConstant removed
IBASE_SVC_IMPLEMENTATIONConstant removed
IBASE_TEXTConstant removed
IBASE_PRP_WRITE_MODEConstant removed
IBASE_UNIXTIMEConstant removed
IBASE_WAITConstant removed
IBASE_PRP_WM_SYNCConstant removed
IBASE_WRITEConstant removed
IBASE_PRP_WM_ASYNCConstant removed
IBASE_PRP_SWEEP_INTERVALConstant removed
IBASE_SVC_USER_DBPATHConstant removed
IBASE_SVC_SVR_DB_INFOConstant removed
IBASE_SVC_SERVER_VERSIONConstant removed
IBASE_SVC_GET_USERSConstant removed
IBASE_SVC_GET_ENV_MSGConstant removed
IBASE_PRP_SHUTDOWN_DBConstant removed
IBASE_PRP_SET_SQL_DIALECTConstant removed
IBASE_PRP_RES_USE_FULLConstant removed
IBASE_SVC_GET_ENV_LOCKConstant removed
Changed
INI Directives
Global
opcache.optimization_levelINI directive default value changed from
0x7FFEBF5Fto0x7FFEBFFF
Classes
ext-intl
ResourceBundleImplements
Countableinterface
ext-SimpleXML
SimpleXMLElementImplements
Countableinterface
Constants
standard
PASSWORD_ARGON2IConstant value changed from
2toargon2iSTREAM_CRYPTO_METHOD_TLS_SERVERConstant value changed from
56to120STREAM_CRYPTO_METHOD_TLS_CLIENTConstant value changed from
57to121STREAM_CRYPTO_METHOD_SSLv23_SERVERConstant value changed from
56to120STREAM_CRYPTO_METHOD_ANY_SERVERConstant value changed from
62to126STREAM_CRYPTO_METHOD_ANY_CLIENTConstant value changed from
63to127PASSWORD_DEFAULTConstant value changed from
1to2yPASSWORD_BCRYPTConstant value changed from
1to2yPASSWORD_ARGON2IDConstant value changed from
3toargon2id
Improvements
Functions
ext-gd
imagecopymerge- Parameter name of parameter #1 changed:
$src_imto$dst_im - Parameter name of parameter #2 changed:
$dst_imto$src_im
imagecopymerge( - $src_im, + $dst_im, - $dst_im, + $src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h, $pct )imagecopymergegray- Parameter name of parameter #1 changed:
$src_imto$dst_im - Parameter name of parameter #2 changed:
$dst_imto$src_im
imagecopymergegray( - $src_im, + $dst_im, - $dst_im, + $src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h, $pct )ext-mysqli
mysqli_get_client_versionNo longer accepts any parameters
- mysqli_get_client_version($link) + mysqli_get_client_version()
ext-pcre
preg_replace_callback_array- Optional parameter added - #5:
$flags
preg_replace_callback_array( $pattern, $subject, $limit, - &$count + &$count, + $flags )preg_replace_callback- Optional parameter added - #6:
$flags
preg_replace_callback( $regex, $callback, $subject, $limit, - &$count + &$count, + $flags )Core
array_merge_recursive- Parameter count changed:
2to1 - Optional parameter removed - #2:
$arrays
- array_merge_recursive($arr1, ...$arrays) + array_merge_recursive(...$arrays)array_merge- Parameter count changed:
2to1 - Optional parameter removed - #2:
$arrays
- array_merge($arr1, ...$arrays) + array_merge(...$arrays)ext-tidy
tidy_get_headAdded new required parameter:
$object- tidy_get_head() + tidy_get_head($object)tidy_get_htmlAdded new required parameter:
$object- tidy_get_html() + tidy_get_html($object)tidy_get_rootAdded new required parameter:
$object- tidy_get_root() + tidy_get_root($object)tidy_getopt- Parameter added - #2:
$option
- tidy_getopt($option) + tidy_getopt($object, $option)Deprecations
Functions
ext-ldap
ldap_control_paged_result_responseFunction deprecated
ldap_control_paged_resultFunction deprecated
Core
convert_cyr_stringFunction deprecated
is_realFunction deprecated
ezmlm_hashFunction deprecated
money_formatFunction deprecated
restore_include_pathFunction deprecated
get_magic_quotes_gpcFunction deprecated
get_magic_quotes_runtimeFunction deprecated
hebrevcFunction 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.
- Parameter added - #2:
- Parameter count changed:
- Optional parameter added - #5:
- Parameter name of parameter #1 changed: