Zend Framework

Zend_Date::isDate using format

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Not an Issue
  • Affects Version/s: None
  • Fix Version/s: 1.7.6
  • Component/s: Zend_Date
  • Labels:
    None

Description

using Zend_Date::isDate() with format. Unexpected result:

$bool = Zend_Date::isDate("1s1-2008", 'MM-yyyy');
Zend_Debug::dump($bool);

result:

bool(true)

I assume this is a bug ?!

Activity

Hide
Thomas Weidner added a comment -

No, because 1-2008 is a date according to MM-yyyy.
Leading and following parts are stripped as this only checks if Zend_Date can handle this date.

Use additionally regex or string-length validator when you have to limit the date to a stricter value.

Show
Thomas Weidner added a comment - No, because 1-2008 is a date according to MM-yyyy. Leading and following parts are stripped as this only checks if Zend_Date can handle this date. Use additionally regex or string-length validator when you have to limit the date to a stricter value.
Hide
Thomas Weidner added a comment -

Closing as non-issue

Show
Thomas Weidner added a comment - Closing as non-issue

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
Not Specified
Original Estimate - Not Specified
Remaining:
0m
Remaining Estimate - 0 minutes
Logged:
10m
Time Spent - 10 minutes