Re: [PHP-DEV] Why is ereg being deprecated?

2009-10-12 Thread Mike Panchenko
Mark, You contradict yourself. You say that putting a warning in 5.3 isn't soon enough, since most people are a few versions behind. Yet you think it is an absolute outrage that something is being dropped in 6, which is a couple of years away anyway. The people that won't be on 5.3 in time to be n

Re: [PHP-DEV] Re: Is it true that short_open_tag is deprecated in PHP 6?

2009-04-13 Thread Mike Panchenko
On Mon, Apr 13, 2009 at 1:06 PM, Stanislav Malyshev wrote: > It's a pretty small use case (that's a problem only if you have xml > documents which has to have php code which has to be inlined) and as you > see, can be easily handled. I think that should not make whole very useful > syntax depreca

Re: [PHP-DEV] Proposal: array_flatten function

2008-12-26 Thread Mike Panchenko
Lukas, Hmmm I'm just trying to solve the basic problem (hence my skepticism towards preserving keys - it seems an edge case). I think once you get to more specific requirements, iterators are probably the way to go, since all the standard functions you could use to shorten this would re-iterate ov

Re: [PHP-DEV] Proposal: array_flatten function

2008-12-26 Thread Mike Panchenko
i, Dec 26, 2008 at 5:55 AM, Kevin Waterson wrote: > This one time, at band camp, "Mike Panchenko" wrote: > > > Hey everybody, I'm new both to the list and to hacking the internals, so > > I'll try to keep it short and humble. > > > > I've wr

Re: [PHP-DEV] Proposal: array_flatten function

2008-12-26 Thread Mike Panchenko
Well, I've made a patch against 5.3 for now, let me know if there are issues with it (I'm sure there are) and if you want the HEAD patch. Cheers. Mike. On Fri, Dec 26, 2008 at 2:55 AM, Alexey Zakhlestin wrote: > On Fri, Dec 26, 2008 at 1:43 PM, David Coallier wrote: > >> > >> "cvs diff -u" agai

[PHP-DEV] Proposal: array_flatten function

2008-12-26 Thread Mike Panchenko
Hey everybody, I'm new both to the list and to hacking the internals, so I'll try to keep it short and humble. I've written an array_flatten function which just takes all elements from a nested array and pushes them into a single indexed array. Couple of questions: 1. Most importantly, is this p