ZF-9085: Zend_Date#getMonth() breaks when using PHP date format mode
Description
Just upgraded to 1.10.0 and found this regression.
To reproduce:
1) Set Zend_Date's date format to 'php' 2) Create a new date object 3) Call getMonth() on that date object
Expected result:
Get a date object returned with the month set to the same month as the original date.
Actual result:
Zend_Date_Exception is thrown.
I will add more details in the comments.
Comments
Posted by Mark Haase (mehaase) on 2010-02-04T11:44:24.000+0000
Here's a quick test case. Sorry I'm not a regular developer for ZF, so I don't know what kinds of tests you usually submit. My test includes a bootstrap for my own project, but other than that it should be portable:
Here are the test results:
Posted by Thomas Weidner (thomas) on 2010-02-05T14:37:03.000+0000
Fixed with r20936