Bug #13411 Updated: Documentation of return value of strtotime()
| From: | philip@php.net | Date: | Thu, 22 Nov 2001 02:07:44 +0000 |
| Subject: | Bug #13411 Updated: Documentation of return value of strtotime() | ||
| References: | 1 | Groups: | php.dev php.doc |
| Request: | Send a blank email to php-dev+get-71345@lists.php.net to get a copy of this message | ||
ID: 13411
Updated by: philip
Reported By: renze@datalink.nl
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@datalink.nl
Oops... ofcourse that last should be; for the _not_ so practised programmers :)
Sorry...
------------------------------------------------------------------------
[2001-09-24 03:49:56] renze@datalink.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:
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=13411&edit=1