Skip to content

[pull] master from php:master - #1058

Merged
pull[bot] merged 5 commits into
dolfly:masterfrom
php:master
Sep 2, 2026
Merged

[pull] master from php:master#1058
pull[bot] merged 5 commits into
dolfly:masterfrom
php:master

Conversation

@pull

@pull pull Bot commented Sep 2, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

oerdnj and others added 5 commits September 2, 2026 14:24
Covariant return types for clone() were only introduced in ICU 65;
before that NumberFormat::clone() returns Format*, so cast the result
explicitly in NumberFormatter_object_clone().

<unicode/numberrangeformatter.h> is a C++-only header, and older ICU
does not wrap it in U_SHOW_CPLUSPLUS_API, so including it from
php_intl.c breaks the C compile.  Move it into the __cplusplus branch,
next to the using declaration that needs it.
Update the error count only after the buffer has been resized and the new
entry initialized. This prevents fatal error handling from reading past the
buffer if reallocating it triggers an OOM bailout.

Prefer safe_erealloc to avoid overflows

---------

Co-authored-by: Tim Düsterhus <timwolla@googlemail.com>
* PHP-8.5:
  Keep EG(errors) buffer consistent on erealloc failure (#23257)
@pull pull Bot locked and limited conversation to collaborators Sep 2, 2026
@pull pull Bot added the ⤵️ pull label Sep 2, 2026
@pull
pull Bot merged commit 6df1311 into dolfly:master Sep 2, 2026
1 check was pending
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants