#45531 [NEW]: description on rand() is wrong

From: Date: Wed, 16 Jul 2008 16:56:32 +0000
Subject: #45531 [NEW]: description on rand() is wrong
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-954@lists.php.net to get a copy of this message
From: wayne at emaildienst dot de Operating system: none PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: description on rand() is wrong Description: ------------ hi, following description is wrong: int rand ([ int $min ], int $max ) it should be: int rand ([[int $min], int $max]) because all parameters are optional. if there is only one given parameter, the function gets it as $max. if there are two parameters given, the function gets the first as $min and the second as $max. -- Edit bug report at http://bugs.php.net/?id=45531&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45531&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45531&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45531&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45531&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45531&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45531&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45531&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45531&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45531&r=support Expected behavior: http://bugs.php.net/fix.php?id=45531&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45531&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45531&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45531&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45531&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45531&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45531&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45531&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45531&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45531&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45531&r=mysqlcfg

« previous php.doc.bugs (#954) next »