Re: Re: cvs: php4 /ext/standard rand.c
| From: | Andrei Zmievski | Date: | Wed, 05 Sep 2001 20:53:23 +0000 |
| Subject: | Re: Re: cvs: php4 /ext/standard rand.c | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-65180@lists.php.net to get a copy of this message | ||
On Wed, 05 Sep 2001, Sterling Hughes wrote:
> Ok, I'm sold... I understand the basics of the format and the
> function, but is the following possible?::
>
> In the situation of rand() when its that are two arguments are
> mandatory, or no arguments are mandatory?
I failed to parse this sentence at first, but then I remembered the
Bronx clean-up that Rasmus did on your XSLT stuff and it helped. :)
> Ie,
>
> rand() is valid and rand(1, 100) is valid, but rand(32) is not
> valid?
You can use regular ZEND_NUM_ARGS() check for the first case and use
zend_parse_parameters() for the second.
-Andrei
Any sufficiently advanced Operating System
is indistinguishable from Linux.
- Jim Dennis