Skip to content

[pull] master from php:master - #862

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

[pull] master from php:master#862
pull[bot] merged 2 commits into
dolfly:masterfrom
php:master

Conversation

@pull

@pull pull Bot commented Jun 28, 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 : )

…I difference (#22446)

It is quite annoying to deal with ICU version guards here and there throughout
the whole extension. However, the guards are on the other hand important for
the extension to work as we must check for ICU compatibility for some of our
features. But that doesn't mean we need to write all these shitty #if stuff
everywhere.

I therefore wrote this PR to implement several internal APIs to check for
compatibility. This very much enhance readability and reduce the possibility
of making mistakes in the future when we are adding guards to new stuffs.
IntlIterator::current() could expose an undefined zval when called before
theiterator is positioned, or after the iterator becomes invalid.

In these cases we directly returns the undefined zval and cause to a UNKNOWN:0
output in userland. Generally, a NULL output would be more proper.
@pull pull Bot locked and limited conversation to collaborators Jun 28, 2026
@pull pull Bot added the ⤵️ pull label Jun 28, 2026
@pull
pull Bot merged commit 44b11b7 into dolfly:master Jun 28, 2026
3 checks passed
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.

1 participant