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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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: Thu Mar 28 10:01:26 2024 UTC