Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73735 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4666 invoked from network); 18 Apr 2014 00:39:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Apr 2014 00:39:44 -0000 Authentication-Results: pb1.pair.com header.from=tjerk.meesters@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tjerk.meesters@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.182 as permitted sender) X-PHP-List-Original-Sender: tjerk.meesters@gmail.com X-Host-Fingerprint: 209.85.128.182 mail-ve0-f182.google.com Received: from [209.85.128.182] ([209.85.128.182:41908] helo=mail-ve0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8D/70-00835-F4470535 for ; Thu, 17 Apr 2014 20:39:44 -0400 Received: by mail-ve0-f182.google.com with SMTP id jw12so1695407veb.27 for ; Thu, 17 Apr 2014 17:39:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=wltwdB6CUpjTO2Fc+0K3IwQOVQgtMtrU0is4eeD1T4o=; b=NLl6gswWbfCzEwAiOiw9xCZeDzRIOoGt9XdMUBdS4qRhoNi02yJbVmE1nNzLMUME6o zapRSxesK5dAi0pxzuU/A0xl8KbFkQ4MASDsn7JBBIr/ahZXUDHIWESA+gflPf4qCiJX /6QQuVqkonYoiq7McgE7uZFUi3D44iJEi9uvkQOp6A/Qjhr1USsymyATOqf/nnsna3f3 wOq3i1g4Yj6nIKFG9tT22qjAyqXD+XM4iZR63xLaeusT/KKFS582tr5HK+x0JaybFY5r jWxPzI9C//t7EW26A1PtG7RwI2cUoT1k4SoQUQXd3VKooJq27ph49zwH8m3wj5uQjgwM jTcQ== MIME-Version: 1.0 X-Received: by 10.58.202.133 with SMTP id ki5mr10265667vec.19.1397781581101; Thu, 17 Apr 2014 17:39:41 -0700 (PDT) Received: by 10.58.133.84 with HTTP; Thu, 17 Apr 2014 17:39:41 -0700 (PDT) Date: Fri, 18 Apr 2014 08:39:41 +0800 Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary=047d7bea42609d83eb04f74662e2 Subject: [pr-645] Add offset to reset() and end() From: tjerk.meesters@gmail.com (Tjerk Meesters) --047d7bea42609d83eb04f74662e2 Content-Type: text/plain; charset=UTF-8 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! -- -- Tjerk --047d7bea42609d83eb04f74662e2--