PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Validate » Validate » Bug #8851

date-validation allows letters in time.

Details

Submitted2006-10-04 23:07 UTC
Fromlyric680-web at yahoo dot de
Assignedamir
StatusClosed
PackageValidate
PHP Version5.0.5
OSLinux
Roadmaps0.8.0

Comments

[2006-10-04 23:07 UTC] lyric680-web at yahoo dot de

Description:
------------
$time = "aa:aa";
$validate->date($time, array("format"=>"%h:%i"))

returns true

Test script:
---------------
require_once 'Validate.php';
$validate = & new Validate();

$time = "aa:aa";
if ($validate->date($time,array("format"=>"%h:%i")))
echo "Is this a bug?";

Expected result:
----------------
Is this a bug?

[2006-10-05 04:42 UTC] amir at php dot net

This bug has been fixed in CVS.

If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.