Skip to content

Conversation

@xuanyanwow
Copy link
Member

@xuanyanwow xuanyanwow commented Nov 11, 2025

In my macos , original setlocale return false .

https://www.php.net/manual/zh/function.setlocale.php

返回值
返回新的当前区域,如果区域功能没有在当前平台实现、指定区域不存在或类别名无效时返回 [false]

@xuanyanwow
Copy link
Member Author

set en_US.UTF-8 success

image

@xuanyanwow xuanyanwow marked this pull request as draft November 11, 2025 10:31
@xuanyanwow
Copy link
Member Author

5c3ec307-efa7-4815-ac1e-ad128526c28f

The resule is difference about same locale in two machine. So I think fixed assert it wrong. We can use native php srot to assert.

@limingxinleo limingxinleo marked this pull request as ready for review November 11, 2025 12:45
@limingxinleo limingxinleo merged commit 194c937 into 3.2 Nov 11, 2025
154 checks passed
@limingxinleo limingxinleo deleted the fixed-setlocale branch November 11, 2025 12:46
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.

3 participants