Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62379 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76631 invoked from network); 21 Aug 2012 23:17:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Aug 2012 23:17:33 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.170 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 74.125.82.170 mail-we0-f170.google.com Received: from [74.125.82.170] ([74.125.82.170:53650] helo=mail-we0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5B/7E-10139-C0714305 for ; Tue, 21 Aug 2012 19:17:32 -0400 Received: by weyr1 with SMTP id r1so250489wey.29 for ; Tue, 21 Aug 2012 16:17:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=qy2PY1U+fOngr1p2Z+TQ7VIm/el3k6MaH1HwWmr6HTA=; b=ZT9AXePbUlxtt8XKznzll2GwZZ4N9NKdriQKvOcBHKnJaxKKkClX0jxWoGlbJQvQTE dfIy/gGo2rvnkvaHQCzd48MTju9ipL2tIVO/azd+VwQIaJPJtmi5xtZUgNS5fymOWPwh Ic60mnKDzEOmy8gOaeUBJ1Le2EJ4i2T+CQy+NuRh4eH1ZNzlplSmMqZ96eV/4iSCpzEK froEGdBT5vViIP3ViTNzTCp1W7wWqkbp85J07/xxwp/qQO9HVY0Ncaa8VSG7OymclnYI KmJlAR6u3qJ7mmS0lDbYdfd9p+YpNF9JEFzdGxwx1GxLbiblhZr9hB/vqrZk5ivkTfw5 UPjw== Received: by 10.180.104.197 with SMTP id gg5mr690227wib.9.1345591048220; Tue, 21 Aug 2012 16:17:28 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.223.86.201 with HTTP; Tue, 21 Aug 2012 16:16:47 -0700 (PDT) In-Reply-To: References: <5033E0BC.8040507@ajf.me> <5033EAAB.6090502@ajf.me> <5033F1EA.4070701@ajf.me> <5033FD9C.6080106@ajf.me> <5033FF96.5030105@ajf.me> <5034017E.1020002@ajf.me> Date: Wed, 22 Aug 2012 08:16:47 +0900 X-Google-Sender-Auth: HBBy2GuiOlgVPVePJ2g-4NirqxA Message-ID: To: Peter Cowburn Cc: Levi Morrison , Andrew Faulds , Tjerk Anne Meesters , Rasmus Schultz , internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] re: removing an item from an array From: yohgaki@ohgaki.net (Yasuo Ohgaki) 2012/8/22 Yasuo Ohgaki : > Hi, > > 2012/8/22 Peter Cowburn : >> On 21 August 2012 23:26, Yasuo Ohgaki wrote: >>> array_walk is the best(fast and memory efficient) way >>> to delete elements. >> >> If array_walk() is the best (fast and memory efficient) way to delete >> elements, why have we had the following line in the manual, for the >> array_walk() callback, for over a decade [1]? (The exact phrasing has >> changed slightly one time, but the message has remained the same) >> "Only the values of the array may potentially be changed; its >> structure cannot be altered, i.e., the programmer cannot add, unset or >> reorder elements." >> >> [1] http://svn.php.net/viewvc/?view=revision&revision=75124 > > 10 years ago log :) > I'm not sure, but it had some problems with reference back then. > There were many array functions that behaved wrong with reference > used to be. > > I was annoyed by that, probably. That's why I wrote it, I suppose. > > Good catch. > It should be removed now. I thought it's in there now, but it's not. What's the point of bring up old bug documentation now? I really don't see. Regards, -- Yasuo Ohgaki