[PHP-DOC] Bug #13411 Updated: Documentation of return value of strtotime() From: philip <email protected>
Date: 11/21/01

ID: 13411
Updated by: philip
Reported By: renze <email protected>
Old Status: Open
Status: Closed
Bug Type: Documentation problem
Operating System: Debian GNU/Linux
PHP Version: 4.0.6
New Comment:

Added, will show up in a few days.

Previous Comments:
------------------------------------------------------------------------

[2001-09-24 03:53:11] renze <email protected>

Oops... ofcourse that last should be; for the _not_ so practised programmers :)
Sorry...

------------------------------------------------------------------------

[2001-09-24 03:49:56] renze <email protected>

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:

------------------------------------------------------------------------

Edit this bug report at http://bugs.php.net/?id=13411&edit=1