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
 [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 06:01:31 2024 UTC