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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: renze at datalink dot nl
New email:
PHP Version: OS:

 

 [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: Wed Jul 02 14:01:36 2025 UTC