#32294 [Opn->Csd]: Intval doc doesn't mention return value
| From: | philip@php.net | Date: | Mon, 28 Mar 2005 09:09:20 +0000 |
| Subject: | #32294 [Opn->Csd]: Intval doc doesn't mention return value | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969367117@lists.php.net to get a copy of this message | ||
ID: 32294
Updated by: philip@php.net
Reported By: mpr at er dot dtu dot dk
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: Irrelevant
PHP Version: Irrelevant
New Comment:
These docs have been rewritten and will show up when the manual is next
built. Thanks for the report! Here's the diff:
*
http://cvs.php.net/diff.php/phpdoc/en/reference/var/functions/intval.xml?r1=1.3&r2=1.4
User notes and various return value information (including integer
overflow) was added.
Previous Comments:
------------------------------------------------------------------------
[2005-03-13 23:26:39] mpr at er dot dtu dot dk
Ooops, "will return -1" should read "will return 0"
------------------------------------------------------------------------
[2005-03-13 23:01:56] mpr at er dot dtu dot dk
Description:
------------
Intval documentation doesn't mention what the return value of intval
applied to a non-nummeric string will be. Ie. Doesn't mention that
intval("this is not a number, and can never be interpreted as one");
will return -1.
Furthermore there's quite a few user contributed notes, that deal with
intvals return value being undefined in case of integer overflow. This,
IMHO, should be documented too.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32294&edit=1