Hi,

2012/8/22 Peter Cowburn <petercowb...@gmail.com>:
> On 21 August 2012 23:26, Yasuo Ohgaki <yohg...@ohgaki.net> 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.

Regards,

--
Yasuo Ohgaki
yohg...@ohgaki.net

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to