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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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 22:01:27 2024 UTC