#49259 [NEW]: Add month 13 to date_parse()
| From: | alan at wilcoxengineering dot com | Date: | Fri, 14 Aug 2009 18:02:26 +0000 |
| Subject: | #49259 [NEW]: Add month 13 to date_parse() | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-141058@lists.php.net to get a copy of this message | ||
From: alan at wilcoxengineering dot com
Operating system: Linux
PHP version: 5.2.10
PHP Bug Type: Feature/Change Request
Bug description: Add month 13 to date_parse()
Description:
------------
date_parse expects months 1..12 only.
date_parse("13/1/5769") for month=13, Ehul in Jewish calendar, results
in month==3 instead of month==13.
It does, however, report the error array showing "Unexpected Character."
It would be nice if date_parse could handle the months properly (just
report back a "13" for the month). The older approach of substr() is my
workaround.
Reproduce code:
---------------
---
From manual page: function.date-parse
---
date_parse("13/1/5769")
Expected result:
----------------
Array for month should show 13 instead of 3
--
Edit bug report at http://bugs.php.net/?id=49259&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49259&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49259&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49259&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=49259&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49259&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=49259&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=49259&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=49259&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=49259&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=49259&r=support
Expected behavior: http://bugs.php.net/fix.php?id=49259&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=49259&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=49259&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=49259&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49259&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=49259&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=49259&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=49259&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=49259&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=49259&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=49259&r=mysqlcfg