streamsnomad.blogg.se

Moveing from php 5.2 to 5.3
Moveing from php 5.2 to 5.3






  • substr_compare() will now accept 0 for its length parameter.
  • moveing from php 5.2 to 5.3

    crypt() will now raise an E_NOTICE error if the salt parameter is omitted.IntlDateFormatter::format() and datefmt_format() now accept IntlCalendar objects.IntlDateFormatter::setCalendar() and datefmt_set_calendar() now accept IntlCalendar objects in addition to the IntlDateFormatter constants.

    moveing from php 5.2 to 5.3

  • 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.
  • Furthermore, if the time zone is omitted and the calendar 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::_construct() and datefmt_create() now accept IntlTimeZone and DateTimeZone objects for the timezone argument, and IntlCalendar objects for the calendar argument.
  • MessageFormatter::format() and MessageFormatter::parse()are no longer limited to second precision when dealing with times.
  • Instead, the placeholders will not be substituted.
  • MessageFormatter::format() and related functions no longer error when an insufficient number of arguments have been provided.
  • 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.
  • Detailed notes on these changes are available.
  • The behaviour of pack() and unpack() with the "a" and "A" format codes has changed.
  • json_encode() now accepts depth parameter.
  • When called with NULL, set_error_handler() and set_exception_handler() now return the previous error or exception handler, respectively.
  • moveing from php 5.2 to 5.3

    set_error_handler() can now be called with NULL as an argument to reset the error handler.

    #Moveing from php 5.2 to 5.3 code

    Please check if you are using any of these functions and change your code appropriately. The official PHP migration guides can be found here:Ĭhanges to core PHP functions are very likely to impact you.






    Moveing from php 5.2 to 5.3