Re: [pr-645] Add offset to reset() and end()

From: Date: Fri, 18 Apr 2014 01:17:11 +0000
Subject: Re: [pr-645] Add offset to reset() and end()
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-73736@lists.php.net to get a copy of this message
On Thu, Apr 17, 2014 at 6:39 PM, Tjerk Meesters <tjerk.meesters@gmail.com>wrote:

> Hi,
>
> I've added a PR that satisfies #31375.
>
> https://github.com/php/php-src/pull/645
>
> It adds a second optional argument to reset() and end() to specify the
> number of elements that should be skipped (forward or backward).
>
> Currently, negative offsets are ignored. Should we raise a notice for such
> cases? Something like:
>
> "Negative offsets are not supported."
>
> Any feedback is welcome. Thanks!
>

Do you have a specific use-case for these changes?


Thread (7 messages)

« previous php.internals (#73736) next »