Changed Functions (original) (raw)
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() andset_exception_handler() now return the previous error or exception handler, respectively. - json_encode() now accepts
depth
parameter. - The behaviour of pack() andunpack() 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() andMessageFormatter::parse() are no longer limited to second precision when dealing with times.
- IntlDateFormatter::__construct() anddatefmt_create() now acceptIntlTimeZone andDateTimeZone objects for the
timezone
argument, andIntlCalendar objects for thecalendar
argument. Furthermore, if the time zone is omitted and thecalendar
doesn't specify a time zone, PHP's default time zone fromdate_default_timezone_get() is now used instead of the default ICU time zone. - IntlDateFormatter::getCalendar() anddatefmt_get_calendar() return false if theIntlDateFormatter object was created with anIntlCalendar instance instead of one of theIntlDateFormatter constants.
- IntlDateFormatter::setCalendar() anddatefmt_set_calendar() now acceptIntlCalendar objects in addition to theIntlDateFormatter constants.
- IntlDateFormatter::format() anddatefmt_format() now acceptIntlCalendar objects.