Bug #13411 Updated: Documentation of return value of strtotime()
| From: | renze at datalink dot nl | Date: | Mon, 24 Sep 2001 07:53:12 +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-66451@lists.php.net to get a copy of this message | ||
ID: 13411
User updated by: renze@datalink.nl
Reported By: renze@datalink.nl
Status: Open
Bug Type: Documentation problem
Operating System: Debian GNU/Linux
PHP Version: 4.0.6
New Comment:
Oops... ofcourse that last should be; for the _not_ so practised programmers :)
Sorry...
Previous Comments:
------------------------------------------------------------------------
[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