Skip to content

Conversation

@ToBee94
Copy link

@ToBee94 ToBee94 commented Nov 18, 2025

At investigation of a possible bug in phpunit (sebastianbergmann/phpunit#6417) i found a bug in mbstring.

If you update the mbstring.detect_order with ini_set, the change doesn't affect mb_detect_encoding.

@ToBee94 ToBee94 force-pushed the fix-ini-set-mbstring-detect-order-is-ignored branch from abefb0c to b82312a Compare November 18, 2025 21:47
@ToBee94
Copy link
Author

ToBee94 commented Nov 28, 2025

@youkidearitai and @alexdowad can you please have a look on it?

Copy link
Contributor

@youkidearitai youkidearitai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for late, LGTM.

@alexdowad
Copy link
Contributor

@ToBee94 I'm very sorry for the delay. I will also try to review today.

@alexdowad
Copy link
Contributor

This looks good!
The PHP documentation states that it should be possible to update mbstring.detect_order via INI.

I think the NEWS and UPGRADING files should be updated.

@ToBee94 ToBee94 force-pushed the fix-ini-set-mbstring-detect-order-is-ignored branch from c3a07cf to 557f2d3 Compare December 1, 2025 10:38
@alexdowad
Copy link
Contributor

CI failure on macOS is completely unrelated (there's a compile error in libxml).
Can I go ahead and merge this?

@ToBee94
Copy link
Author

ToBee94 commented Dec 1, 2025

From my side yes, i have no changes planned anymore.

Thank you :)

@alexdowad alexdowad closed this in 6b197ee Dec 1, 2025
@alexdowad
Copy link
Contributor

@ToBee94, thank you very much for your contribution. And I apologize again that it took a long time to review it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants