Re: Re: #21060 [Opn->Bgs]: range() gives warning and returns false when low == high

From: Date: Sat, 21 Dec 2002 11:05:58 +0000
Subject: Re: Re: #21060 [Opn->Bgs]: range() gives warning and returns false when low == high
References: 1 2 3 4 5  Groups: php.dev 
Request: Send a blank email to php-dev+get-92737@lists.php.net to get a copy of this message
On Sat, 21 Dec 2002, Chandrashekhar Bhosle wrote: > > On Fri, 20 Dec 2002 09:44:49 -0500 > "Ilia A." <ilia@prohost.org> wrote: > > > > > What would be an output then, array() ? > > > > > > range(2,4) gives array(2,3,4); > > > range(2,3) gives array(2,3); > > > range(2,2) gives array(2); > > > > Good idea, +1. > > > > I'll prepare a patch. > > http://freedomink.org/code/php/patches/array.c.patch > > My patch submitted with the bug report does exactly that. > (Returns array(low) if high == low.) > > I would appreciate if you had a look at it. Ilia is extending range even more, so stay tuned :) Derick -- ------------------------------------------------------------------------- Derick Rethans http://derickrethans.nl/ PHP Magazine - PHP Magazine for Professionals http://php-mag.net/ -------------------------------------------------------------------------

« previous php.dev (#92737) next »