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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: radror at wp dot pl
New email:
PHP Version: OS:

 

 [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