|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79722 IntlDateFormatter::getPattern() for ar locale returns extra characters
Submitted: 2020-06-21 18:29 UTC Modified: 2020-07-05 04:22 UTC
From: k dot witkowski at advoxstudio dot com Assigned: cmb (profile)
Status: No Feedback Package: I18N and L10N related
PHP Version: 7.2.31 OS: Ubuntu 18.04 + docker
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
36 - 7 = ?
Subscribe to this entry?

 [2020-06-21 18:29 UTC] k dot witkowski at advoxstudio dot com
Wrong value of pattern for arabic locales.

Test script:
php > $dateFormat = new \IntlDateFormatter('ar_MO', \IntlDateFormatter::SHORT, \IntlDateFormatter::NONE);
php > echo htmlentities($dateFormat->getPattern());

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2020-06-22 11:47 UTC]
-Status: Open +Status: Feedback -Package: intl +Package: I18N and L10N related -Assigned To: +Assigned To: cmb
 [2020-06-22 11:47 UTC]
These right-to-left marks look fine to me:
 [2020-06-23 08:40 UTC] k dot witkowski at advoxstudio dot com
-Status: Feedback +Status: Assigned
 [2020-06-23 08:40 UTC] k dot witkowski at advoxstudio dot com
If you use these patterns with date() you receive wrongly formatted output
 [2020-06-23 09:18 UTC]
-Status: Assigned +Status: Feedback
 [2020-06-23 09:18 UTC]
Yes, but I don't think that PHP claims these format strings to be
compatible in any way.
 [2020-07-05 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 17 14:01:31 2024 UTC