Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@ PHP NEWS
specified number base. (Sjoerd Langkemper)
. Improved performance of in_array() and array_search() in strict mode when
searching for a string. (Alexander Danilov)
. setlocale() now only changes the locale of the current thread.
(Felix Bünemann)

- URI:
. Fix casing of enum cases in UriHostType and UrlHostType to match the RFC
Expand Down
4 changes: 4 additions & 0 deletions UPGRADING
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ PHP 8.7 UPGRADE NOTES
rebuilding PHP with --enable-fd-setsize. On Windows, selecting on more than
64 pipe or file handles no longer crashes; it fails with a warning, as that
path remains bounded by WaitForMultipleObjects().
. setlocale() now only changes the locale of the current thread, as it
already did in thread-safe (ZTS) builds on Windows. Previously it changed
the locale of the whole process: in ZTS builds, requests running in other
threads used that locale too, and concurrent calls could crash.

========================================
6. New Functions
Expand Down
5 changes: 5 additions & 0 deletions UPGRADING.INTERNALS
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ PHP 8.7 INTERNALS UPGRADE NOTES
. ZEND_IN_RANGE_OF(x, T) was added to check whether the value of an integer
x is representable in the integer type T.
. ZEND_TYPE_MIN(T) and ZEND_TYPE_MAX(T) were added.
. The zend_setlocale() function was added. During a request it only changes
the locale of the current thread, which is what the setlocale() function
of PHP now does. Extensions should use it instead of the setlocale()
function of the C library, which still changes the locale of the whole
process and doesn't return the locale of the current thread.

- Deprecated:
. ZEND_LONG_INT_OVFL(), ZEND_LONG_INT_UDFL(), ZEND_LONG_EXCEEDS_INT(),
Expand Down
Loading
Loading