From: mpr at er dot dtu dot dk Operating system: Irrelevant PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: Intval doc doesn't mention return value
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 bug report at http://bugs.php.net/?id=32294&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32294&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32294&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32294&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=32294&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=32294&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32294&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32294&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32294&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32294&r=support Expected behavior: http://bugs.php.net/fix.php?id=32294&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32294&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32294&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=32294&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32294&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=32294&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32294&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32294&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32294&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32294&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32294&r=mysqlcfg