|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-07-18 02:32 UTC] jack+phpdotnet at smartertravelmedia dot com
[2008-07-18 07:25 UTC] derick@php.net
[2008-07-18 13:31 UTC] jack+phpdotnet at smartertravelmedia dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 23:00:01 2025 UTC |
Description: ------------ MySQL uses '0000-00-00 00:00:00' as a default value for non-null datetime fields. Until 5.2.6, strtotime correctly returned false (or -1 before 5.1) when passed this value - it's not a valid date/time. 5.2.6 returns '-62169966000' which is not useful. Reproduce code: --------------- <?php echo (int)strtotime('0000-00-00 00:00:00'); Expected result: ---------------- Should print 0. Actual result: -------------- Actually prints -62169966000.