php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #13411 Documentation of return value of strtotime()
Submitted: 2001-09-24 03:49 UTC Modified: 2001-11-21 21:07 UTC
From: renze at datalink dot nl Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.0.6 OS: Debian GNU/Linux
Private report: No CVE-ID: None
 [2001-09-24 03:49 UTC] renze at datalink dot nl
Well... it's just a small thing, but the documentation doesn't mention the return value of the strtotime() function. Ofcourse, if everything goes right, the function returns a timestamp. But the documentation doesn't mention the -1 return value on failure.
It's not all that weird ofcourse that it returns -1 io 0 on failure, but it seems to be not so obvious for that practised programmers.

* R&zE:

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-24 03:53 UTC] renze at datalink dot nl
Oops... ofcourse that last should be; for the _not_ so practised programmers :)
Sorry...
 [2001-11-21 21:07 UTC] philip@php.net
Added, will show up in a few days.  
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon May 05 22:01:30 2025 UTC