Re: cvs: php4 /ext/standard string.c
| From: | Derick Rethans | Date: | Tue, 08 Oct 2002 16:48:34 +0000 |
| Subject: | Re: cvs: php4 /ext/standard string.c | ||
| References: | 1 2 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-14717@lists.php.net to get a copy of this message | ||
On Tue, 8 Oct 2002, Sander Roobol wrote:
> On Tue, Oct 08, 2002 at 09:52:59AM -0000, Andrey Hristov wrote:
> > andrey Tue Oct 8 05:52:59 2002 EDT
> >
> > Modified files:
> > /php4/ext/standard string.c
> > Log:
> > Now str_shuffle() has the randomization characteristics of shuffle().
> > str_shuffle() won't return anymore the randomized string and thus will be
> > consistent with shuffle(). Since this function is new to 4.3.0 no BC
> > problems.
>
> Although it's not consistant with shuffle(), I'd rather see
> str_shuffle() returning the new string instead of modifying it in place.
I agree with that.
Derick
--
---------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
JDI Media Solutions
--------------[ if you hold a unix shell to your ear, do you hear the c? ]-