php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #53668 [pl] Incorrect documentation for rand()
Submitted: 2011-01-06 14:51 UTC Modified: 2011-01-15 23:45 UTC
From: radror at wp dot pl Assigned: frozenfire (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
50 - 26 = ?
Subscribe to this entry?

 
 [2011-01-06 14:51 UTC] radror at wp dot pl
Description:
------------
---
From manual page: http://www.php.net/function.rand#Opis
---
Manual shows incorrect syntax:
int rand ([ int $min ], int $max )

It should be:
int rand ([ int $min , int $max ])



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-15 23:44 UTC] frozenfire@php.net
Automatic comment from SVN on behalf of frozenfire
Revision: http://svn.php.net/viewvc/?view=revision&revision=307503
Log: Changed $max parameter to be optional, closing bug #53668.
 [2011-01-15 23:45 UTC] frozenfire@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: frozenfire
 [2011-01-15 23:45 UTC] frozenfire@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC