|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-02-24 14:02 UTC] tony2001@php.net
[2006-02-24 14:10 UTC] derick@php.net
[2006-02-26 18:07 UTC] iliaa@php.net
[2006-02-27 20:41 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 12:00:01 2025 UTC |
Description: ------------ Strtotime returns false if a TAB is contained in the time string as in the following examples. Not sure if it's a bug, but the behiavour has changed. We had a mistiped line of code with a TAB in many projects, that's why we noticed it ;) I suggest an internal replacement of \t, \r, \n as whitespaces Reproduce code: --------------- var_dump(strtotime("-2 hours")); (with a TAB beetween '-2' and 'hours') Expected result: ---------------- int(1140769426) Actual result: -------------- bool(false)