-
Notifications
You must be signed in to change notification settings - Fork 7.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsisten IntlDateFormatter between bullseye and bookworm builds #13270
Comments
The icu4c library version surely differ between those two. |
@devnexen ? |
@TimWolla could you provide more details on why task has been closed and status changed to invalid? Is it expected that with the new build and thus new icu version we should adjust our php applications to work with slightly different date formatter output? |
Yes. You generally should not expect the ICU output format to be stable, because as with any other software there are bugfixes and the output is meant for human consumption, not for machines. If languages evolve or if a language is incorrectly implemented the output will change. In fact I'd argue that this specific change is a bugfix, because breaking the line before the "PM" would easily become confusing. |
@TimWolla make sense, thanks for explanation 🙏 |
Description
Inconsistent output can be seen with
IntlDateFormatter
betweenphp:8.3.2-cli-bullseye
andphp:8.3.2-cli-bookworm
docker builds.For whatever reason
bookworm
build adds a narrow non breakable space (nnbps) to formatted date.The following code:
Resulted in this output:
PHP Version
8.3.2
Operating System
Debian
The text was updated successfully, but these errors were encountered: