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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ueli at whatwedo dot ch
New email:
PHP Version: OS:

 

 [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-2021 The PHP Group
All rights reserved.
Last updated: Thu May 13 14:01:23 2021 UTC