ID:               51012
 Updated by:       [email protected]
 Reported By:      stlwrt at gmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Date/time related
 Operating System: Fedora 12, OSX 10.6.2
 PHP Version:      5.3.1
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

use check_date() for validating dates.


Previous Comments:
------------------------------------------------------------------------

[2010-02-11 11:21:37] stlwrt at gmail dot com

Description:
------------
strtotime accepts "2010-02-30" as a valid date and converts it to 
timestamp

Reproduce code:
---------------
<?php var_dump(strtotime('2010-02-30')); ?>


Expected result:
----------------
bool(false)


Actual result:
--------------
int(1267480800)



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=51012&edit=1

Reply via email to