Skip to content

[pull] master from php:master - #1146

Merged
pull[bot] merged 3 commits into
turkdevops:masterfrom
php:master
Aug 2, 2026
Merged

[pull] master from php:master#1146
pull[bot] merged 3 commits into
turkdevops:masterfrom
php:master

Conversation

@pull

@pull pull Bot commented Aug 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 : )

LamentXU123 and others added 3 commits August 3, 2026 00:13
Introduce PHP_INTL_FUNCTION_WITH_ERROR_RESET macro to standardize
and automate the global Intl error state reset at the start of
every userland PHP_FUNCTION. Also change the IC_METHOD function
to automatically reset error state in the start of the defined function.

The macro wraps the function entry point, performs
intl_error_reset(NULL), and delegates the actual logic to a
separate _impl function. This reduces boilerplate and prevents
bugs caused by missing error resets, as seen in GH-22931 and
GH-22500.

This refactor applies to all functions with a manual reset call
and does not affect internal helper functions that handle errors
independently.
@pull pull Bot locked and limited conversation to collaborators Aug 2, 2026
@pull pull Bot added the ⤵️ pull label Aug 2, 2026
@pull
pull Bot merged commit e31d8e0 into turkdevops:master Aug 2, 2026
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.

2 participants