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 Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or 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

Add a Patch

Pull Requests

Add a Pull Request

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 May 16 07:01:33 2024 UTC