|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2019-10-01 07:42 UTC] cmb@php.net
-Status: Open
+Status: Not a bug
-Assigned To:
+Assigned To: cmb
[2019-10-01 07:42 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 17 01:00:01 2025 UTC |
Description: ------------ especially when using date function with strtotime this behavior may result problems since strtotime returns false when invalid argument is supplied but date function will not Test script: --------------- <?php echo date('Y-m-d',false); echo date('Y-m-d',0); Expected result: ---------------- false 01-01-1970 Actual result: -------------- 01-01-1970 01-01-1970