yiisoft/yii — pull request #1836 by mytskine (2012-12-09 23:40:27+00:00)
Title: Issue #189: CDateValidator and 32b PHP

Fixes the issue #189. Unit tests included.

A simpler patch was proposed a few days ago, but it broke backward compatibility on a corner case (i.e. strict comparison of the output of CDateTimeParser on a 32b PHP for a date older than 1902). This patch does not break BC. It adds a new method to CDateTimeParser, `parseIntoArray()`, so that the validator can distinguish between a invalid date and a valid date with no timestamp. See the commits messages for more details.