ID:               32294
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to