|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-08-14 23:30 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 20 20:00:02 2025 UTC |
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