On Thu, 23 Jun 2011, Chris Stockton wrote: > On Thu, Jun 23, 2011 at 8:49 AM, Martin Scotta <martinsco...@gmail.com> wrote: > > Martin Scotta > >> > > foreach ($values as $value) { > > // use $value > > } > > unset ($value); // <-- unset done inside core > > > > foreach ($values as $key => $value) { > > // use $key and $value > > } > > unset ($key, $value); // <-- unset done inside core > > > > will this just do the trick? > > > > I think proposed change is extremely counter intuitive to the design > of PHP in regard to scoping and would be a very large bc break, PHP is > doing exactly what it is suppose to do here and I wouldn't want it any > other way.
I totally agree. Derick -- http://derickrethans.nl | http://xdebug.org Like Xdebug? Consider a donation: http://xdebug.org/donate.php twitter: @derickr and @xdebug
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php