Hello, 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. -Chris -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php