Edit report at https://bugs.php.net/bug.php?id=62179&edit=1
ID: 62179 Comment by: aldekein at myevil dot info Reported by: aldekein at myevil dot info Summary: strtotime returns current date instead of false or correct timestamp Status: Open Type: Bug Package: *General Issues Operating System: linux / windows PHP Version: 5.3.13 Block user comment: N Private report: N New Comment: It tries to parse value as time. And strtotime('11.05.07 00:00:00') === false Previous Comments: ------------------------------------------------------------------------ [2012-05-29 09:57:04] aldekein at myevil dot info Description: ------------ So why do strtotime return current date instead of correct date or FALSE? Test script: --------------- $datetime = strtotime('11.05.07'); if ($datetime === false) die('fail'); echo date('d.m.Y', $datetime); Expected result: ---------------- 11.05.2007 Actual result: -------------- 29.05.2012 (current date) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=62179&edit=1