2005-11-23 23:01:54 +08:00
|
|
|
$Id$
|
2005-11-23 07:49:13 +08:00
|
|
|
|
2012-11-19 06:43:26 +08:00
|
|
|
PHP 5.5 UPGRADE NOTES
|
2012-03-06 04:14:04 +08:00
|
|
|
|
|
|
|
1. Backward Incompatible Changes
|
|
|
|
2. New Features
|
|
|
|
2. Changes in SAPI modules
|
|
|
|
3. Deprecated Functionality
|
|
|
|
4. Changed Functions
|
|
|
|
5. New Functions
|
|
|
|
6. New Classes and Interfaces
|
|
|
|
7. Removed Extensions
|
|
|
|
8. Other Changes to Extensions
|
|
|
|
9. New Global Constants
|
|
|
|
10. Changes to INI File Handling
|
2012-11-14 17:15:42 +08:00
|
|
|
11. Windows Support
|
|
|
|
12. Other Changes
|
2010-03-25 00:23:50 +08:00
|
|
|
|
2005-11-23 07:49:13 +08:00
|
|
|
|
2010-03-25 00:23:50 +08:00
|
|
|
========================================
|
2012-03-06 04:14:04 +08:00
|
|
|
1. Backward Incompatible Changes
|
2010-03-25 00:23:50 +08:00
|
|
|
========================================
|
2009-06-25 05:16:53 +08:00
|
|
|
|
2012-03-05 01:02:55 +08:00
|
|
|
- Drop Windows XP and 2003 support. (Pierre)
|
2012-07-16 06:35:16 +08:00
|
|
|
- All internal case insensitivity handling for class, function and constant
|
2012-07-15 06:03:51 +08:00
|
|
|
names is done according to ASCII rules, current locale settings are ignored.
|
2012-07-15 04:44:21 +08:00
|
|
|
- php_logo_guid(), php_egg_logo_guid(), php_real_logo_guid() and
|
|
|
|
zend_logo_guid() have been removed
|
|
|
|
- Removal of Logo GUIDs
|
2009-01-29 01:23:28 +08:00
|
|
|
|
2012-03-06 04:14:04 +08:00
|
|
|
========================================
|
|
|
|
2. New Features
|
|
|
|
========================================
|
2009-01-29 01:23:28 +08:00
|
|
|
|
2012-08-25 22:23:14 +08:00
|
|
|
- Support list in foreach. (Laruence)
|
|
|
|
(wiki.php.net/rfc/foreachlist)
|
2012-08-13 21:48:39 +08:00
|
|
|
- Support finally keyword. (Laruence)
|
|
|
|
(wiki.php.net/rfc/finally)
|
2012-04-15 11:40:38 +08:00
|
|
|
- Support constant array/string dereferencing. (Laruence)
|
|
|
|
(https://wiki.php.net/rfc/constdereference)
|
2012-04-12 17:54:52 +08:00
|
|
|
- Add support for using empty() on the result of function calls and
|
|
|
|
other expressions. Thus it is now possible to write empty(getArray()),
|
|
|
|
for example. (https://wiki.php.net/rfc/empty_isset_exprs)
|
2012-09-12 16:05:28 +08:00
|
|
|
- Added generators.
|
|
|
|
(https://wiki.php.net/rfc/generators)
|
2009-01-29 01:23:28 +08:00
|
|
|
|
2012-03-06 04:14:04 +08:00
|
|
|
========================================
|
|
|
|
2. Changes in SAPI modules
|
|
|
|
========================================
|
2009-01-29 01:23:28 +08:00
|
|
|
|
|
|
|
|
2012-03-06 04:14:04 +08:00
|
|
|
========================================
|
|
|
|
3. Deprecated Functionality
|
|
|
|
========================================
|
2009-01-29 01:23:28 +08:00
|
|
|
|
2012-03-06 04:14:04 +08:00
|
|
|
- The preg_replace /e modifier is now deprecated. Use
|
|
|
|
preg_replace_callback instead.
|
|
|
|
(https://wiki.php.net/rfc/remove_preg_replace_eval_modifier)
|
2012-11-16 12:33:17 +08:00
|
|
|
- IntlDateFormatter::setTimeZoneID() and datefmt_set_timezone_id() are
|
|
|
|
deprecated. Use IntlDateFormatter::setTimeZone() or datefmt_set_timezone()
|
|
|
|
instead.
|
|
|
|
- mcrypt_ecb(), mcrypt_cbc(), mcrypt_cfb() and mcrypt_ofb() now throw
|
|
|
|
E_DEPRECATED. Their use was already previously discouraged in the docs,
|
|
|
|
but that predated the existence of E_DEPRECATED.
|
2009-01-29 01:23:28 +08:00
|
|
|
|
2012-03-06 04:14:04 +08:00
|
|
|
========================================
|
|
|
|
4. Changed Functions
|
|
|
|
========================================
|
2009-06-24 03:40:31 +08:00
|
|
|
|
2012-04-17 19:31:36 +08:00
|
|
|
- pack()/unpack() had the following changes, which bring it more in line
|
|
|
|
with Perl's behavior:
|
|
|
|
- Implemented format character "Z": NUL-padded string
|
|
|
|
- "a" now does not remove trailing NUL characters on unpack() anymore
|
|
|
|
- "A" will now strip all trailing ASCII whitespace on unpack() (it used to
|
2012-05-25 03:17:07 +08:00
|
|
|
remove only trailing spaces).
|
2012-05-14 04:56:11 +08:00
|
|
|
- MessageFormatter::format() and related functions now accepted named arguments
|
|
|
|
and mixed numeric/named arguments in ICU 4.8+.
|
|
|
|
- MessageFormatter::format() and related functions now don't error out when
|
|
|
|
an insufficient argument count is provided. Instead, the placeholders will
|
|
|
|
remain unsubstituted.
|
2012-05-06 19:06:44 +08:00
|
|
|
- MessageFormatter::parse() and MessageFormat::format() (and their static
|
|
|
|
equivalents) now don't throw away better than second precision in the
|
|
|
|
arguments.
|
2012-06-05 01:21:39 +08:00
|
|
|
- IntlDateFormatter::__construct and datefmt_create() now accept for the
|
|
|
|
$timezone argument time zone identifiers, IntlTimeZone objects, DateTimeZone
|
|
|
|
objects and NULL. It used to accept only time zone identifiers and NULL.
|
|
|
|
Invalid time zone identifiers are no longer accepted. Emptry strings are
|
|
|
|
no longer accepted.
|
|
|
|
- The default time zone used in IntlDateFormatter::__construct and
|
|
|
|
datefmt_create() (when the corresponding argument is not passed or NULL is
|
|
|
|
passed) is now the one given by date_default_timezone_get(), not the
|
|
|
|
default ICU time zone.
|
|
|
|
- The time zone passed to the IntlDateFormatter is ignored if it is NULL and if
|
|
|
|
the calendar passed is an IntlCalendar object -- in this case, the
|
|
|
|
IntlCalendar's time zone will be used instead. Otherwise, the time zone
|
|
|
|
specified in the $timezone argument is used instead. This does not affect
|
|
|
|
old code, as IntlCalendar was introduced in this version.
|
|
|
|
- IntlDateFormatter::__construct and datefmt_create() now accept for the
|
|
|
|
$calendar argument also IntlCalendar objects.
|
|
|
|
- IntlDateFormatter::getCalendar() and datefmt_get_calendar() return false
|
|
|
|
if the IntlDateFormatter was set up with an IntlCalendar instead of the
|
|
|
|
constants IntlDateFormatter::GREGORIAN/TRADITIONAL. IntlCalendar did not
|
|
|
|
exist before this version.
|
|
|
|
- IntlDateFormatter::setCalendar() and datefmt_set_calendar() now also accept
|
|
|
|
an IntlCalendar object, in which case its time zone is taken. Passing a
|
|
|
|
constant is still allowed, and still keeps the time zone.
|
2012-07-22 10:26:49 +08:00
|
|
|
- IntlDateFormatter::format() and datefmt_format() now also accept an
|
|
|
|
IntlCalendar object for formatting.
|
2012-07-15 04:44:21 +08:00
|
|
|
- php_logo_guid(), php_egg_logo_guid(), php_real_logo_guid() and
|
|
|
|
zend_logo_guid() have been removed
|
2012-09-23 03:54:59 +08:00
|
|
|
- set_error_handler(NULL) can now be used to reset the error handler.
|
|
|
|
Furthermore both set_error_handler(NULL) and set_exception_handler(NULL) will
|
|
|
|
now return the previously defined error/exception handler. Previously
|
|
|
|
bool(true) was returned.
|
2009-06-24 03:40:31 +08:00
|
|
|
|
2012-03-06 04:14:04 +08:00
|
|
|
========================================
|
|
|
|
5. New Functions
|
|
|
|
========================================
|
2009-01-29 01:23:28 +08:00
|
|
|
|
2012-06-08 01:28:06 +08:00
|
|
|
- Core:
|
|
|
|
- boolval()
|
|
|
|
|
2012-07-11 01:13:30 +08:00
|
|
|
- Hash:
|
|
|
|
- hash_pbkdf2()
|
|
|
|
|
2012-04-02 06:35:29 +08:00
|
|
|
- Intl:
|
2012-07-22 10:26:49 +08:00
|
|
|
- datefmt_format_object()
|
2012-06-05 01:21:39 +08:00
|
|
|
- datefmt_get_calendar_object()
|
|
|
|
- datefmt_get_timezone()
|
|
|
|
- datefmt_set_timezone()
|
|
|
|
- datefmt_get_calendar_object()
|
2012-04-02 06:35:29 +08:00
|
|
|
- intlcal_create_instance()
|
|
|
|
- intlcal_get_keyword_values_for_locale()
|
|
|
|
- intlcal_get_now()
|
|
|
|
- intlcal_get_available_locales()
|
|
|
|
- intlcal_get()
|
|
|
|
- intlcal_get_time()
|
|
|
|
- intlcal_set_time()
|
|
|
|
- intlcal_add()
|
|
|
|
- intlcal_set_time_zone()
|
|
|
|
- intlcal_after()
|
|
|
|
- intlcal_before()
|
|
|
|
- intlcal_set()
|
|
|
|
- intlcal_roll()
|
|
|
|
- intlcal_clear()
|
|
|
|
- intlcal_field_difference()
|
|
|
|
- intlcal_get_actual_maximum()
|
|
|
|
- intlcal_get_actual_minimum()
|
|
|
|
- intlcal_get_day_of_week_type()
|
|
|
|
- intlcal_get_first_day_of_week()
|
|
|
|
- intlcal_get_greatest_minimum()
|
|
|
|
- intlcal_get_least_maximum()
|
|
|
|
- intlcal_get_locale()
|
|
|
|
- intlcal_get_maximum()
|
|
|
|
- intlcal_get_minimal_days_in_first_week()
|
|
|
|
- intlcal_get_minimum()
|
|
|
|
- intlcal_get_time_zone()
|
|
|
|
- intlcal_get_type()
|
|
|
|
- intlcal_get_weekend_transition()
|
|
|
|
- intlcal_in_daylight_time()
|
|
|
|
- intlcal_is_equivalent_to()
|
|
|
|
- intlcal_is_lenient()
|
|
|
|
- intlcal_is_set()
|
|
|
|
- intlcal_is_weekend()
|
|
|
|
- intlcal_set_first_day_of_week()
|
|
|
|
- intlcal_set_lenient()
|
|
|
|
- intlcal_equals()
|
|
|
|
- intlcal_get_repeated_wall_time_option()
|
|
|
|
- intlcal_get_skipped_wall_time_option()
|
|
|
|
- intlcal_set_repeated_wall_time_option()
|
|
|
|
- intlcal_set_skipped_wall_time_option()
|
2012-05-21 02:57:06 +08:00
|
|
|
- intlcal_from_date_time()
|
|
|
|
- intlcal_to_date_time()
|
2012-04-02 06:35:29 +08:00
|
|
|
- intlcal_get_error_code()
|
|
|
|
- intlcal_get_error_message()
|
|
|
|
- intlgregcal_create_instance()
|
|
|
|
- intlgregcal_set_gregorian_change()
|
|
|
|
- intlgregcal_get_gregorian_change()
|
|
|
|
- intlgregcal_is_leap_year()
|
|
|
|
- intltz_create_time_zone()
|
|
|
|
- intltz_create_default()
|
|
|
|
- intltz_get_id()
|
|
|
|
- intltz_get_gmt()
|
|
|
|
- intltz_get_unknown()
|
|
|
|
- intltz_create_enumeration()
|
|
|
|
- intltz_count_equivalent_ids()
|
|
|
|
- intltz_create_time_zone_id_enumeration()
|
|
|
|
- intltz_get_canonical_id()
|
|
|
|
- intltz_get_region()
|
|
|
|
- intltz_get_tz_data_version()
|
|
|
|
- intltz_get_equivalent_id()
|
|
|
|
- intltz_use_daylight_time()
|
|
|
|
- intltz_get_offset()
|
|
|
|
- intltz_get_raw_offset()
|
|
|
|
- intltz_has_same_rules()
|
|
|
|
- intltz_get_display_name()
|
|
|
|
- intltz_get_dst_savings()
|
2012-05-21 02:57:06 +08:00
|
|
|
- intltz_from_date_time_zone()
|
|
|
|
- intltz_to_date_time_zone()
|
2012-04-02 06:35:29 +08:00
|
|
|
- intltz_get_error_code()
|
|
|
|
- intltz_get_error_message()
|
|
|
|
|
2012-07-22 10:26:49 +08:00
|
|
|
- IntlDateFormatter::formatObject()
|
2012-06-05 01:21:39 +08:00
|
|
|
- IntlDateFormatter::getCalendarObject()
|
|
|
|
- IntlDateFormatter::getTimeZone()
|
|
|
|
- IntlDateFormatter::setTimeZone()
|
|
|
|
|
2012-04-02 06:26:06 +08:00
|
|
|
- SPL:
|
|
|
|
- SplFixedArray::__wakeup()
|
2011-08-29 13:00:26 +08:00
|
|
|
|
2012-03-06 04:14:04 +08:00
|
|
|
========================================
|
|
|
|
6. New Classes and Interfaces
|
|
|
|
========================================
|
2009-01-29 01:23:28 +08:00
|
|
|
|
2012-04-02 06:35:29 +08:00
|
|
|
- Intl:
|
|
|
|
- IntlCalendar
|
|
|
|
- IntlGregorianCalendar
|
|
|
|
- IntlTimeZone
|
2012-06-25 18:12:22 +08:00
|
|
|
- IntlBreakIterator
|
|
|
|
- IntlRuleBasedBreakIterator
|
|
|
|
- IntlCodePointBreakIterator
|
2009-01-29 01:23:28 +08:00
|
|
|
|
2012-03-06 04:14:04 +08:00
|
|
|
========================================
|
|
|
|
7. Removed Extensions
|
|
|
|
========================================
|
2009-01-29 01:23:28 +08:00
|
|
|
|
|
|
|
|
2012-03-06 04:14:04 +08:00
|
|
|
========================================
|
|
|
|
8. Other Changes to Extensions
|
|
|
|
========================================
|
2012-02-21 18:34:42 +08:00
|
|
|
|
2012-05-21 02:57:06 +08:00
|
|
|
- Intl:
|
|
|
|
- This extension now requires ICU 4.0+.
|
2009-01-29 01:23:28 +08:00
|
|
|
|
2012-03-06 04:14:04 +08:00
|
|
|
========================================
|
|
|
|
9. New Global Constants
|
|
|
|
========================================
|
2012-11-16 12:34:10 +08:00
|
|
|
|
|
|
|
- mysqli:
|
2012-10-04 19:40:23 +08:00
|
|
|
- Added MYSQLI_SERVER_PUBLIC_KEY constant to be used with mysqli_options()
|
2010-03-25 00:23:50 +08:00
|
|
|
|
2012-03-06 04:14:04 +08:00
|
|
|
========================================
|
|
|
|
10. Changes to INI File Handling
|
|
|
|
========================================
|
2012-11-16 12:34:10 +08:00
|
|
|
|
|
|
|
- Intl:
|
|
|
|
- Added intl.use_exceptions INI directive, which controls what happens when
|
|
|
|
global errors are set together with intl.error_level.
|
|
|
|
|
|
|
|
- mysqlnd:
|
2012-10-04 19:40:23 +08:00
|
|
|
- Added mysqlnd.sha256_server_public_key INI PERDIR setting that affects all
|
|
|
|
APIs which use(are built) for mysqlnd. This allows ext/mysqli to be used
|
|
|
|
with the new auth protocol, although at coarser level.
|
2010-08-30 17:38:47 +08:00
|
|
|
|
2012-11-14 17:15:42 +08:00
|
|
|
========================================
|
|
|
|
11. Windows Support
|
|
|
|
========================================
|
|
|
|
|
|
|
|
- Apache 2.4 handler is supported as of PHP 5.5.0
|
|
|
|
|
2011-07-27 08:18:35 +08:00
|
|
|
|
2012-03-06 04:14:04 +08:00
|
|
|
========================================
|
2012-11-14 17:15:42 +08:00
|
|
|
12. Other Changes
|
2012-03-06 04:14:04 +08:00
|
|
|
========================================
|
2012-07-15 04:44:21 +08:00
|
|
|
|
|
|
|
- Logo GUIDs will no longer work
|