@@ -4,6 +4,7 @@ UPGRADE NOTES - PHP X.Y
4
4
5
5
1. Internal API changes
6
6
a. Streams pooling API
7
+ b. Lowercasing and locales
7
8
8
9
2. Build system changes
9
10
a. Unix build system changes
@@ -26,6 +27,32 @@ PHPAPI int php_stream_context_set_link(php_stream_context *context,
26
27
PHPAPI int php_stream_context_del_link(php_stream_context *context,
27
28
php_stream *stream);
28
29
30
+ b. Lowercasing and locales
31
+
32
+ The lowercasing functions in zend_operators.c were split into those that do
33
+ lowercasing according to locale rules and those that do ASCII lowercasing.
34
+ ASCII:
35
+
36
+ zend_str_tolower_copy
37
+ zend_str_tolower_dup
38
+ zend_str_tolower
39
+ zend_binary_strcasecmp
40
+ zend_binary_strncasecmp
41
+
42
+ Locale-based:
43
+ zend_binary_strncasecmp_l
44
+ zend_binary_strcasecmp_l
45
+ zend_binary_zval_strcasecmp
46
+ zend_binary_zval_strncasecmp
47
+ string_compare_function_ex
48
+ string_case_compare_function
49
+
50
+ Internal engine lowercasing will be using ASCII-only rules. User-facing functions,
51
+ such as strcasecmp, will be using locale rules.
52
+
53
+ Two new functions - zend_binary_strncasecmp_l and zend_binary_strcasecmp_l - added as
54
+ locale-based counterparts to zend_binary_strcasecmp and zend_binary_strncasecmp.
55
+
29
56
========================
30
57
2. Build system changes
31
58
========================
@@ -34,5 +61,5 @@ PHPAPI int php_stream_context_del_link(php_stream_context *context,
34
61
-
35
62
36
63
b. Windows build system changes
37
- -
64
+ - Drop Windows XP and 2003 support.
38
65
0 commit comments