Skip to content

Conversation

@lacatoire
Copy link
Contributor

As of PHP 8.5, passing an integer 0 as the locales argument to setlocale() is no longer supported and triggers a TypeError.

This PR adds a short note to clarify this change and to warn that older examples or user contributed notes may still reference setlocale(category, 0), which is no longer valid.

This helps reduce confusion for users upgrading to PHP 8.5 and copying legacy examples that were historically correct.

Issue #4950

Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

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

This should be a changelog entry.

@lacatoire lacatoire requested a review from Girgias January 14, 2026 08:07
@lacatoire lacatoire requested a review from Girgias January 15, 2026 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants