Date: 08/13/01
- Next message: Jirka Kosek: "[PHP-DOC] cvs: phpdoc / README.xsl bightml.xsl.in chunk-filename.xsl configure.in html.xsl.in htmlhelp.xsl.in"
- Previous message: Damien Seguy: "[PHP-DOC] cvs: phpdoc /en/functions gmp.xml"
- In reply to: Jeroen van Wolffelaar: "Re: [PHP-DOC] Bug #12550 Updated: rand() and mt_rand() don't behave as documented"
- Next in thread: Jeroen van Wolffelaar: "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 ]
On Mon, 13 Aug 2001, Jeroen van Wolffelaar wrote:
>> 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.
>
>_if_ I remember right (not sure), there are now 2 proto's, one with no args,
>and one with2 args.
Both protos for both mt_rand() and rand() are the same and correct.
>That would mean it is correct now, though I agree with you that that proto
>is better.
It's not the proto that matters here. It's the fact that the functions
happen to WORK like this. Just check the sources yourself.
Both of these functions take either no arguments at all OR 2 arguments.
>I prefer your patch though, although it is IMO a hack. But the result was
>correct.
I never claimed it to be the right way to do this but it seems to be the
only way to get the correct result. Unless someone finds a better
solution, of course. ( I dunno docbook that well )
--Jani
- Next message: Jirka Kosek: "[PHP-DOC] cvs: phpdoc / README.xsl bightml.xsl.in chunk-filename.xsl configure.in html.xsl.in htmlhelp.xsl.in"
- Previous message: Damien Seguy: "[PHP-DOC] cvs: phpdoc /en/functions gmp.xml"
- In reply to: Jeroen van Wolffelaar: "Re: [PHP-DOC] Bug #12550 Updated: rand() and mt_rand() don't behave as documented"
- Next in thread: Jeroen van Wolffelaar: "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 ]

