Doc #54746 [Opn]: suggestion for rand() prototype
| From: | rquadling@php.net | Date: | Mon, 16 May 2011 14:23:15 +0000 |
| Subject: | Doc #54746 [Opn]: suggestion for rand() prototype | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-6406@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=54746&edit=1
ID: 54746
Updated by: rquadling@php.net
Reported by: gwarnants at gmail dot com
Summary: suggestion for rand() prototype
Status: Open
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
To be able to render that, the underlying XML needs to be able to
describe it.
This particular request was in DocBook V5.1
(http://www.docbook.org/tdg51/en/html/group.methodparam.html)
I don't think that this is officially released yet.
So, for the time being, 2 prototypes is the most accurate way that can
be used
to describe the arguments.
Previous Comments:
------------------------------------------------------------------------
[2011-05-16 16:05:33] gwarnants at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.rand#Description
---
Current prototype of rand() function is :
int rand ( void )
int rand ( int $min , int $max )
I think it should be better to write a single prototype indicating
optional parameters like this :
int rand ( [int $min, int $max] )
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=54746&edit=1