2010-08-30 10:26:31 +00:00
|
|
|
$Id$
|
|
|
|
|
|
|
|
UPGRADE NOTES - PHP X.Y
|
|
|
|
|
|
|
|
1. Internal API changes
|
2012-02-22 10:08:37 +00:00
|
|
|
a. Streams pooling API
|
2012-07-14 22:03:51 +00:00
|
|
|
b. Lowercasing and locales
|
2013-01-14 16:27:20 +00:00
|
|
|
c. zend_qsort_r
|
2010-09-17 08:42:12 +00:00
|
|
|
|
2010-11-18 10:43:01 +00:00
|
|
|
2. Build system changes
|
|
|
|
a. Unix build system changes
|
|
|
|
b. Windows build system changes
|
|
|
|
|
|
|
|
|
2010-08-30 10:26:31 +00:00
|
|
|
========================
|
|
|
|
1. Internal API changes
|
|
|
|
========================
|
|
|
|
|
2012-02-22 10:08:37 +00:00
|
|
|
a. Streams pooling API
|
2010-09-01 09:54:45 +00:00
|
|
|
|
2012-02-22 10:08:37 +00:00
|
|
|
The streams pooling API has been removed. The following functions no longer
|
|
|
|
exist:
|
2010-09-01 09:54:45 +00:00
|
|
|
|
2012-02-22 10:08:37 +00:00
|
|
|
PHPAPI int php_stream_context_get_link(php_stream_context *context,
|
|
|
|
const char *hostent, php_stream **stream);
|
|
|
|
PHPAPI int php_stream_context_set_link(php_stream_context *context,
|
|
|
|
const char *hostent, php_stream *stream);
|
|
|
|
PHPAPI int php_stream_context_del_link(php_stream_context *context,
|
|
|
|
php_stream *stream);
|
2010-11-18 10:43:01 +00:00
|
|
|
|
2012-07-14 22:03:51 +00:00
|
|
|
b. Lowercasing and locales
|
|
|
|
|
|
|
|
The lowercasing functions in zend_operators.c were split into those that do
|
|
|
|
lowercasing according to locale rules and those that do ASCII lowercasing.
|
|
|
|
ASCII:
|
|
|
|
|
|
|
|
zend_str_tolower_copy
|
|
|
|
zend_str_tolower_dup
|
|
|
|
zend_str_tolower
|
|
|
|
zend_binary_strcasecmp
|
|
|
|
zend_binary_strncasecmp
|
|
|
|
|
|
|
|
Locale-based:
|
|
|
|
zend_binary_strncasecmp_l
|
|
|
|
zend_binary_strcasecmp_l
|
|
|
|
zend_binary_zval_strcasecmp
|
|
|
|
zend_binary_zval_strncasecmp
|
|
|
|
string_compare_function_ex
|
|
|
|
string_case_compare_function
|
|
|
|
|
|
|
|
Internal engine lowercasing will be using ASCII-only rules. User-facing functions,
|
|
|
|
such as strcasecmp, will be using locale rules.
|
|
|
|
|
|
|
|
Two new functions - zend_binary_strncasecmp_l and zend_binary_strcasecmp_l - added as
|
|
|
|
locale-based counterparts to zend_binary_strcasecmp and zend_binary_strncasecmp.
|
|
|
|
|
2013-01-14 16:27:20 +00:00
|
|
|
c. zend_qsort_r
|
|
|
|
|
|
|
|
Added the function zend_qsort_r():
|
|
|
|
|
|
|
|
typedef int (*compare_r_func_t)(const void *, const void * TSRMLS_DC, void *);
|
|
|
|
void zend_qsort_r(void *base, size_t nmemb, size_t siz, compare_r_func_t compare, void *arg TSRMLS_DC);
|
|
|
|
|
|
|
|
The extra argument it has (relatively to zend_qsort()) is passed to the
|
|
|
|
comparison function.
|
|
|
|
|
2010-11-18 10:43:01 +00:00
|
|
|
========================
|
|
|
|
2. Build system changes
|
|
|
|
========================
|
|
|
|
|
|
|
|
a. Unix build system changes
|
2012-02-22 10:08:37 +00:00
|
|
|
-
|
2010-11-18 10:43:01 +00:00
|
|
|
|
|
|
|
b. Windows build system changes
|
2012-07-14 22:03:51 +00:00
|
|
|
- Drop Windows XP and 2003 support.
|
2010-11-18 10:43:01 +00:00
|
|
|
|