Changed Functions
PHP Core
-
set_error_handler() can now be called with
NULL
as an argument to reset the error handler. -
When called with
NULL
, set_error_handler() and set_exception_handler() now return the previous error or exception handler, respectively. -
json_encode() now accepts
depth
parameter. - The behaviour of pack() and unpack() with the "a" and "A" format codes has changed. Detailed notes on these changes are available.
intl
- MessageFormatter::format() and related functions now accept named arguments and mixed numeric and named arguments when PHP is linked to ICU 4.8 or later.
- MessageFormatter::format() and related functions no longer error when an insufficient number of arguments have been provided. Instead, the placeholders will not be substituted.
- MessageFormatter::format() and MessageFormatter::parse() are no longer limited to second precision when dealing with times.
-
IntlDateFormatter::__construct() and
datefmt_create() now accept
IntlTimeZone and
DateTimeZone objects for the
timezone
argument, and IntlCalendar objects for thecalendar
argument. Furthermore, if the time zone is omitted and thecalendar
doesn't specify a time zone, PHP's default time zone from date_default_timezone_get() is now used instead of the default ICU time zone. - IntlDateFormatter::getCalendar() and datefmt_get_calendar() return false if the IntlDateFormatter object was created with an IntlCalendar instance instead of one of the IntlDateFormatter constants.
- IntlDateFormatter::setCalendar() and datefmt_set_calendar() now accept IntlCalendar objects in addition to the IntlDateFormatter constants.
- IntlDateFormatter::format() and datefmt_format() now accept IntlCalendar objects.
English translation
You have asked to visit this site in English. For now, only the interface is translated, but not all the content yet.If you want to help me in translations, your contribution is welcome. All you need to do is register on the site, and send me a message asking me to add you to the group of translators, which will give you the opportunity to translate the pages you want. A link at the bottom of each translated page indicates that you are the translator, and has a link to your profile.
Thank you in advance.
Document created the 30/01/2003, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/php-rf-migration55.changed-functions.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.