#45531 [Ver->Csd]: description on rand() is wrong

From: Date: Mon, 21 Jul 2008 09:13:48 +0000
Subject: #45531 [Ver->Csd]: description on rand() is wrong
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-978@lists.php.net to get a copy of this message
ID: 45531 Updated by: kalle@php.net Reported By: wayne at emaildienst dot de -Status: Verified +Status: Closed Bug Type: Translation problem Operating System: none PHP Version: Irrelevant New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2008-07-16 19:43:18] wayne at emaildienst dot de hi, yes in the german documentation is the error. and yes the english version is correct. int rand ( int $min , int $max ) is the correct description. ------------------------------------------------------------------------ [2008-07-16 17:41:04] tularis@php.net It looks correct to me in the english version of the manual; where are you seeing it like that? I can see it in the German translation, so I'll change the category to translation problem. ------------------------------------------------------------------------ [2008-07-16 16:56:32] wayne at emaildienst dot de 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 this bug report at http://bugs.php.net/?id=45531&edit=1

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