Date: 08/13/01
- Next message: eschmid+sic <email protected>: "Re: [PHP-DOC] Bug #12550 Updated: rand() and mt_rand() don't behave as documented"
- Previous message: Rui Hirokawa: "[PHP-DOC] cvs: phpdoc / global.ent"
- In reply to: jeroen <email protected>: "[PHP-DOC] Bug #12550 Updated: rand() and mt_rand() don't behave as documented"
- Next in thread: eschmid+sic <email protected>: "Re: [PHP-DOC] Bug #12550 Updated: rand() and mt_rand() don't behave as documented"
- Reply: eschmid+sic <email protected>: "Re: [PHP-DOC] Bug #12550 Updated: rand() and mt_rand() don't behave as documented"
- Reply: Jeroen van Wolffelaar: "Re: [PHP-DOC] Bug #12550 Updated: rand() and mt_rand() don't behave as documented"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Now you assume that you need to pass arguments to these functions.
Which is not the case. Here's the proto:
/* {{{ proto int rand([int min, int max])
Returns a random number */
So revert that patch. mt_rand() / rand() accecpt either 2 parameters or
none at all. It was at least LESS wrong before. Now it's totally wrong.
--Jani
p.s. Egon, you still haven't explained me why my patch was wrong?
On 12 Aug 2001 jeroen <email protected> wrote:
>ID: 12550
>Updated by: jeroen
>Reported By: sulka <email protected>
>Old Status: Open
>Status: Closed
>Bug Type: Documentation problem
>Operating System: N/A
>PHP Version: 4.0.6
>New Comment:
>
>Fixed. Hope this _is_ accepted...
>
>--Jeroen
>
>Previous Comments:
>------------------------------------------------------------------------
>
>[2001-08-09 03:17:38] sniper <email protected>
>
>Reopened. My workaround wasn't accepted either. :)
>
>--Jani
>
>
>------------------------------------------------------------------------
>
>[2001-08-09 01:56:09] sniper <email protected>
>
>I have committed yet another fix for this..
>
>--Jani
>
>
>------------------------------------------------------------------------
>
>[2001-08-08 16:59:08] tom <email protected>
>
>Reopened, since DSSSL doesn't act as expected, and I'm not allowed to do a workaround.
>
>------------------------------------------------------------------------
>
>[2001-08-06 17:09:31] tom <email protected>
>
>IT's changes in the CVS, and will be online tomorrow...
>
>------------------------------------------------------------------------
>
>[2001-08-03 21:09:30] sniper <email protected>
>
>The documentation is wrong. The proto is this:
>
>mt_rand([int min, int max])
>
>--Jani
>
>
>------------------------------------------------------------------------
>
>The remainder of the comments for this report are too long. To view
>the rest of the comments, please view the bug report online at
> http://bugs.php.net/?id=12550
>
>
>Edit this bug report at http://bugs.php.net/?id=12550&edit=1
>
- Next message: eschmid+sic <email protected>: "Re: [PHP-DOC] Bug #12550 Updated: rand() and mt_rand() don't behave as documented"
- Previous message: Rui Hirokawa: "[PHP-DOC] cvs: phpdoc / global.ent"
- In reply to: jeroen <email protected>: "[PHP-DOC] Bug #12550 Updated: rand() and mt_rand() don't behave as documented"
- Next in thread: eschmid+sic <email protected>: "Re: [PHP-DOC] Bug #12550 Updated: rand() and mt_rand() don't behave as documented"
- Reply: eschmid+sic <email protected>: "Re: [PHP-DOC] Bug #12550 Updated: rand() and mt_rand() don't behave as documented"
- Reply: Jeroen van Wolffelaar: "Re: [PHP-DOC] Bug #12550 Updated: rand() and mt_rand() don't behave as documented"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

