Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73736 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7017 invoked from network); 18 Apr 2014 01:17:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Apr 2014 01:17:16 -0000 Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.45 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.219.45 mail-oa0-f45.google.com Received: from [209.85.219.45] ([209.85.219.45:61209] helo=mail-oa0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6D/D0-00835-B1D70535 for ; Thu, 17 Apr 2014 21:17:15 -0400 Received: by mail-oa0-f45.google.com with SMTP id eb12so1237075oac.32 for ; Thu, 17 Apr 2014 18:17:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=NIxCirYC8oQNVKHYHezUArt+lWVj9Cn70qJxMYBWW/k=; b=Z5zKImvx+aIfFSeYKizNTNx/3VwhD8Ru10dXltoAHZw5z6m5usUElEIiwZ3CqiUrWh NUBMxrwjM7bScu7j7h1ibfvFrT89KJ/41jQv12Ty8ZYswgIidRhtR4qzmkiNab0e8yeN HMBdEFiuaQNx1L6/g+0RF3V9f0GdU694XWM1NB8LgUQqt/bG8cziJA+uEmH5jZVkCQgR TjlIV4PW2RmSC2gnbczr180ap+YqLvkSW0DzSYQEGjG9T98Fb3l2JzUYhjQJh+W9kN1Q d+HrguuIbieNtGTiLhYykR+YUF+k8CZUKwLUvMUCghx5M9bYK1F5X913nUdsWKPzI7KS kQ9A== MIME-Version: 1.0 X-Received: by 10.182.81.39 with SMTP id w7mr47487obx.56.1397783831692; Thu, 17 Apr 2014 18:17:11 -0700 (PDT) Received: by 10.76.77.100 with HTTP; Thu, 17 Apr 2014 18:17:11 -0700 (PDT) In-Reply-To: References: Date: Thu, 17 Apr 2014 19:17:11 -0600 Message-ID: To: Tjerk Meesters Cc: PHP Internals Content-Type: multipart/alternative; boundary=047d7b2e437ec2cd5d04f746e885 Subject: Re: [PHP-DEV] [pr-645] Add offset to reset() and end() From: morrison.levi@gmail.com (Levi Morrison) --047d7b2e437ec2cd5d04f746e885 Content-Type: text/plain; charset=UTF-8 On Thu, Apr 17, 2014 at 6:39 PM, Tjerk Meesters 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? --047d7b2e437ec2cd5d04f746e885--