php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #65611 make month / day names as protected static
Submitted: 2013-09-03 20:49 UTC Modified: 2021-02-01 15:27 UTC
Votes:33
Avg. Score:3.0 ± 0.0
Reproduced:0 of 3 (0.0%)
From: ueli at whatwedo dot ch Assigned: cmb (profile)
Status: Wont fix Package: Date/time related
PHP Version: Irrelevant OS: all
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:
MUST BE VALID
Solve the problem:
39 - 38 = ?
Subscribe to this entry?

 
 [2013-09-03 20:49 UTC] ueli at whatwedo dot ch
Description:
------------
Month and day names in \DateTime class should be protected static variables 
instead of hardcoded (php_date.c line 1000) strings. That would it make easier to 
translate them into other langauges (extending the \DateTime class).

Test script:
---------------
-


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-02-01 15:27 UTC] cmb@php.net
-Status: Open +Status: Wont fix -Assigned To: +Assigned To: cmb
 [2021-02-01 15:27 UTC] cmb@php.net
I think you're better off to use IntlDateFormatter if you need
internationalization.  If you feel strongly about this feature,
please pursue the RFC process[1].

[1] <https://wiki.php.net/rfc/howto>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 01:01:30 2024 UTC