Re: [PHP-DEV] Proposal: array_flatten function

2008-12-27 Thread Kevin Waterson
This one time, at band camp, Brian Moon wrote: > I would agree except that doing lots of work on arrays in user space > consumes a lot of memory because of the number of opcodes used when > working on removing/adding things to the array. This is exactly the scenario for which SPL Iterators wer

Re: [PHP-DEV] Proposal: array_flatten function

2008-12-27 Thread Brian Moon
On 12/27/08 2:10 AM, Kevin Waterson wrote: The last thing that is needed, is more array functions.. I would agree except that doing lots of work on arrays in user space consumes a lot of memory because of the number of opcodes used when working on removing/adding things to the array. We cre

Re: [PHP-DEV] Tip for 5.3: exceptions in __toString and __autoload

2008-12-27 Thread Stan Vassilev | FM
Hi, With __autoload you can throw an exception as long as you define the class requested. If you don't, the fatal error from the fact the class isn't there is triggered before the exception and you never see it. A clutch would be eval-ing an empty class with the same name right before you t

Re: [PHP-DEV] Proposal: array_flatten function

2008-12-27 Thread Kevin Waterson
This one time, at band camp, "Mike Panchenko" wrote: > Why not just link straight to the tutorial on your site? ;) Not sure what > your point is, other than "there's a way to do this in userland," which I > cover in my email. Maybe some sentences to accompany it would make it easier > to understa