|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #54746 suggestion for rand() prototype
Submitted: 2011-05-16 16:05 UTC Modified: 2011-07-02 04:11 UTC
From: gwarnants at gmail dot com Assigned:
Status: Wont fix 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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: gwarnants at gmail dot com
New email:
PHP Version: OS:


 [2011-05-16 16:05 UTC] gwarnants at gmail dot com
From manual page:

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] )


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-05-16 16:23 UTC]
To be able to render that, the underlying XML needs to be able to describe it.

This particular request was in DocBook V5.1 

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.
 [2011-07-02 04:11 UTC]
-Status: Open +Status: Wont fix
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jul 15 08:01:28 2024 UTC