2010-11-13 19:12:07 +08:00
|
|
|
PHP NEWS
|
1999-07-23 07:54:54 +08:00
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
2011-09-12 18:20:34 +08:00
|
|
|
?? ??? 201?, PHP 5.5.0
|
2010-11-18 00:56:21 +08:00
|
|
|
|
|
|
|
- General improvements:
|
2012-11-12 20:45:15 +08:00
|
|
|
. Added support for generators. (Nikita Popov)
|
2012-09-12 23:56:12 +08:00
|
|
|
. Add simplified password hashing API
|
|
|
|
(https://wiki.php.net/rfc/password_hash). (Anthony Ferrara)
|
2012-09-17 04:02:47 +08:00
|
|
|
. Add generators and coroutines (https://wiki.php.net/rfc/generators).
|
|
|
|
(Nikita Popov)
|
2012-08-25 22:23:14 +08:00
|
|
|
. Support list in foreach (https://wiki.php.net/rfc/foreachlist). (Laruence)
|
2012-08-13 21:48:39 +08:00
|
|
|
. Implemented 'finally' keyword (https://wiki.php.net/rfc/finally). (Laruence)
|
2012-03-05 01:02:55 +08:00
|
|
|
. Drop Windows XP and 2003 support. (Pierre)
|
2012-03-24 19:38:40 +08:00
|
|
|
. Improve set_exception_handler while doing reset.(Laruence)
|
2012-04-15 11:40:38 +08:00
|
|
|
. Support constant array/string dereferencing. (Laruence)
|
2012-04-12 17:54:52 +08:00
|
|
|
. Add support for using empty() on the result of function calls and
|
|
|
|
other expressions (https://wiki.php.net/rfc/empty_isset_exprs).
|
|
|
|
(Nikita Popov)
|
2012-11-12 20:45:15 +08:00
|
|
|
. Remove php_logo_guid(), php_egg_logo_guid(), php_real_logo_guid(),
|
|
|
|
zend_logo_guid(). (Adnrew Faulds)
|
2005-06-11 00:55:27 +08:00
|
|
|
|
2012-08-07 16:47:50 +08:00
|
|
|
- Calendar:
|
|
|
|
. Fixed bug #54254 (cal_from_jd returns month = 6 when there is only one Adar)
|
2012-11-12 21:29:32 +08:00
|
|
|
(Stas, Eitan Mosenkis)
|
2012-08-07 16:47:50 +08:00
|
|
|
|
2012-03-24 19:41:11 +08:00
|
|
|
- Core:
|
2012-11-12 21:29:32 +08:00
|
|
|
. Added boolval(). (Jille Timmermans)
|
2012-11-12 20:45:15 +08:00
|
|
|
. Added "Z" option to pack/unpack. (Gustavo)
|
|
|
|
. Implemented FR #60738 (Allow 'set_error_handler' to handle NULL).
|
|
|
|
(Laruence, Nikita Popov)
|
|
|
|
. Added optional second argument for assert() to specify custom message. Patch
|
|
|
|
by Lonny Kapelushnik (lonny@lonnylot.com). (Lars)
|
2012-07-15 06:03:51 +08:00
|
|
|
. Fixed bug #18556 (Engine uses locale rules to handle class names). (Stas)
|
2012-11-12 21:29:32 +08:00
|
|
|
. Fixed bug #61681 (Malformed grammar). (Nikita Popov, Etienne, Laruence)
|
2012-04-17 19:31:36 +08:00
|
|
|
. Fixed bug #61038 (unpack("a5", "str\0\0") does not work as expected).
|
|
|
|
(srgoogleguy, Gustavo)
|
2012-09-23 03:54:59 +08:00
|
|
|
. Return previous handler when passing NULL to set_error_handler and
|
|
|
|
set_exception_handler. (Nikita Popov)
|
2012-03-24 19:41:11 +08:00
|
|
|
|
2011-11-23 01:33:48 +08:00
|
|
|
- cURL:
|
|
|
|
. Added support for CURLOPT_FTP_RESPONSE_TIMEOUT, CURLOPT_APPEND,
|
|
|
|
CURLOPT_DIRLISTONLY, CURLOPT_NEW_DIRECTORY_PERMS, CURLOPT_NEW_FILE_PERMS,
|
|
|
|
CURLOPT_NETRC_FILE, CURLOPT_PREQUOTE, CURLOPT_KRBLEVEL, CURLOPT_MAXFILESIZE,
|
|
|
|
CURLOPT_FTP_ACCOUNT, CURLOPT_COOKIELIST, CURLOPT_IGNORE_CONTENT_LENGTH,
|
|
|
|
CURLOPT_CONNECT_ONLY, CURLOPT_LOCALPORT, CURLOPT_LOCALPORTRANGE,
|
|
|
|
CURLOPT_FTP_ALTERNATIVE_TO_USER, CURLOPT_SSL_SESSIONID_CACHE,
|
|
|
|
CURLOPT_FTP_SSL_CCC, CURLOPT_HTTP_CONTENT_DECODING,
|
|
|
|
CURLOPT_HTTP_TRANSFER_DECODING, CURLOPT_PROXY_TRANSFER_MODE,
|
|
|
|
CURLOPT_ADDRESS_SCOPE, CURLOPT_CRLFILE, CURLOPT_ISSUERCERT,
|
|
|
|
CURLOPT_USERNAME, CURLOPT_PASSWORD, CURLOPT_PROXYUSERNAME,
|
|
|
|
CURLOPT_PROXYPASSWORD, CURLOPT_NOPROXY, CURLOPT_SOCKS5_GSSAPI_NEC,
|
|
|
|
CURLOPT_SOCKS5_GSSAPI_SERVICE, CURLOPT_TFTP_BLKSIZE,
|
|
|
|
CURLOPT_SSH_KNOWNHOSTS, CURLOPT_FTP_USE_PRET, CURLOPT_MAIL_FROM,
|
|
|
|
CURLOPT_MAIL_RCPT, CURLOPT_RTSP_CLIENT_CSEQ, CURLOPT_RTSP_SERVER_CSEQ,
|
|
|
|
CURLOPT_RTSP_SESSION_ID, CURLOPT_RTSP_STREAM_URI, CURLOPT_RTSP_TRANSPORT,
|
|
|
|
CURLOPT_RTSP_REQUEST, CURLOPT_RESOLVE, CURLOPT_ACCEPT_ENCODING,
|
|
|
|
CURLOPT_TRANSFER_ENCODING, CURLOPT_DNS_SERVERS and CURLOPT_USE_SSL.
|
|
|
|
(Pierrick)
|
2011-11-23 01:13:26 +08:00
|
|
|
. Fixed bug #55635 (CURLOPT_BINARYTRANSFER no longer used. The constant
|
2012-08-06 10:25:15 +08:00
|
|
|
still exists for backward compatibility but is doing nothing). (Pierrick)
|
2011-11-23 13:45:27 +08:00
|
|
|
. Fixed bug #54995 (Missing CURLINFO_RESPONSE_CODE support). (Pierrick)
|
2011-11-23 01:13:26 +08:00
|
|
|
|
2012-08-06 10:25:15 +08:00
|
|
|
- Datetime
|
|
|
|
. Fixed bug #61642 (modify("+5 weekdays") returns Sunday).
|
|
|
|
(Dmitri Iouchtchenko)
|
|
|
|
|
2012-06-12 21:57:11 +08:00
|
|
|
- Hash
|
2012-06-13 01:51:18 +08:00
|
|
|
. Added support for PBKDF2 via hash_pbkdf2(). (Anthony Ferrara)
|
2012-06-12 21:57:11 +08:00
|
|
|
|
2012-11-13 02:16:12 +08:00
|
|
|
- Intl
|
|
|
|
. The intl extension now requires ICU 4.0+.
|
|
|
|
. Added intl.use_exceptions INI directive, which controls what happens when
|
|
|
|
global errors are set together with intl.error_level. (Gustavo)
|
|
|
|
. MessageFormatter::format() and related functions now accepted named
|
|
|
|
arguments and mixed numeric/named arguments in ICU 4.8+. (Gustavo)
|
|
|
|
. MessageFormatter::format() and related functions now don't error out when
|
|
|
|
an insufficient argument count is provided. Instead, the placeholders will
|
|
|
|
remain unsubstituted. (Gustavo)
|
|
|
|
. MessageFormatter::parse() and MessageFormat::format() (and their static
|
|
|
|
equivalents) don't throw away better than second precision in the arguments.
|
|
|
|
(Gustavo)
|
|
|
|
. IntlDateFormatter::__construct and datefmt_create() now accept for the
|
|
|
|
$timezone argument time zone identifiers, IntlTimeZone objects, DateTimeZone
|
|
|
|
objects and NULL. (Gustavo)
|
|
|
|
. IntlDateFormatter::__construct and datefmt_create() no longer accept invalid
|
|
|
|
timezone identifiers or empty strings. (Gustavo)
|
|
|
|
. 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. (Gustavo)
|
|
|
|
. 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. (Gustavo)
|
|
|
|
. IntlDateFormatter::__construct and datefmt_create() now accept for the
|
|
|
|
$calendar argument also IntlCalendar objects. (Gustavo)
|
|
|
|
. 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. (Gustavo)
|
|
|
|
. 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. (Gustavo)
|
|
|
|
. IntlDateFormatter::setTimeZoneID() and datefmt_set_timezone_id() are
|
|
|
|
deprecated. Use IntlDateFormatter::setTimeZone() or datefmt_set_timezone()
|
|
|
|
instead. (Gustavo)
|
|
|
|
. IntlDateFormatter::format() and datefmt_format() now also accept an
|
|
|
|
IntlCalendar object for formatting. (Gustavo)
|
|
|
|
. Added the classes: IntlCalendar, IntlGregorianCalendar, IntlTimeZone,
|
|
|
|
IntlBreakIterator, IntlRuleBasedBreakIterator and
|
|
|
|
IntlCodePointBreakIterator. (Gustavo)
|
|
|
|
. Added the functions: 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(), intlcal_from_date_time(),
|
|
|
|
intlcal_to_date_time(), intlcal_get_error_code(),
|
|
|
|
intlcal_get_error_message(), intlgregcal_create_instance(),
|
|
|
|
intlgregcal_set_gregorian_change(), intlgregcal_get_gregorian_change() and
|
|
|
|
intlgregcal_is_leap_year(). (Gustavo)
|
|
|
|
. Added the functions: 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(), intltz_from_date_time_zone(),
|
|
|
|
intltz_to_date_time_zone(), intltz_get_error_code(),
|
|
|
|
intltz_get_error_message(). (Gustavo)
|
|
|
|
. Added the methods: IntlDateFormatter::formatObject(),
|
|
|
|
IntlDateFormatter::getCalendarObject(), IntlDateFormatter::getTimeZone(),
|
|
|
|
IntlDateFormatter::setTimeZone(). (Gustavo)
|
|
|
|
. Added the functions: datefmt_format_object(), datefmt_get_calendar_object(),
|
|
|
|
datefmt_get_timezone(), datefmt_set_timezone(),
|
|
|
|
datefmt_get_calendar_object(), intlcal_create_instance(). (Gustavo)
|
|
|
|
|
2012-08-16 23:10:05 +08:00
|
|
|
- MCrypt
|
|
|
|
. mcrypt_ecb(), mcrypt_cbc(), mcrypt_cfb() and mcrypt_ofb() now throw
|
|
|
|
E_DEPRECATED. (GoogleGuy)
|
|
|
|
|
2012-05-03 19:02:34 +08:00
|
|
|
- MySQLi
|
|
|
|
. Dropped support for LOAD DATA LOCAL INFILE handlers when using libmysql.
|
|
|
|
Known for stability problems. (Andrey)
|
2012-10-04 19:40:23 +08:00
|
|
|
. Added support for SHA256 authentication available with MySQL 5.6.6+. (Andrey)
|
2012-05-03 19:02:34 +08:00
|
|
|
|
2012-03-05 00:32:01 +08:00
|
|
|
- PCRE:
|
|
|
|
. Deprecated the /e modifier
|
|
|
|
(https://wiki.php.net/rfc/remove_preg_replace_eval_modifier). (Nikita Popov)
|
2012-10-19 16:02:37 +08:00
|
|
|
. Fixed bug #63284 (Upgrade PCRE to 8.31). (Anatoliy)
|
2012-03-05 00:32:01 +08:00
|
|
|
|
2011-11-25 10:24:37 +08:00
|
|
|
- pgsql
|
|
|
|
. Added pg_escape_literal() and pg_escape_identifier() (Yasuo)
|
|
|
|
|
2012-11-12 20:45:15 +08:00
|
|
|
- SPL
|
|
|
|
. Fix bug #60560 (SplFixedArray un-/serialize, getSize(), count() return 0,
|
|
|
|
keys are strings). (Adam)
|
|
|
|
|
2012-08-20 12:46:29 +08:00
|
|
|
- Tokenizer:
|
|
|
|
. Fixed bug #60097 (token_get_all fails to lex nested heredoc). (Nikita Popov)
|
|
|
|
|
2012-06-08 03:46:51 +08:00
|
|
|
- Zip:
|
|
|
|
. Upgraded libzip to 0.10.1 (Anatoliy)
|
|
|
|
|
2012-10-16 17:14:43 +08:00
|
|
|
- Fileinfo:
|
|
|
|
. Fixed bug #63248 (Load multiple magic files from a directory under Windows).
|
|
|
|
(Anatoliy)
|
2012-11-27 23:59:27 +08:00
|
|
|
. Fixed bug #63590 (Different results in TS and NTS under Windows).
|
|
|
|
(Anatoliy)
|
2012-10-16 17:14:43 +08:00
|
|
|
|
2012-11-14 17:15:42 +08:00
|
|
|
- Apache2 Handler SAPI:
|
|
|
|
. Enabled Apache 2.4 configure option for Windows (Pierre, Anatoliy)
|
|
|
|
|
2010-11-18 00:56:21 +08:00
|
|
|
<<< NOTE: Insert NEWS from last stable release here prior to actual release! >>>
|