Re: [PATCH] New functions: array_replace[_recursive]
| From: | Matt Wilmas | Date: | Thu, 28 Aug 2008 14:32:19 +0000 |
| Subject: | Re: [PATCH] New functions: array_replace[_recursive] | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-40120@lists.php.net to get a copy of this message | ||
Hi Johannes,
----- Original Message -----
From: "Johannes Schlüter"
Sent: Thursday, July 31, 2008
> Matt,
>
> On Thu, 2008-07-31 at 20:06 +0200, Johannes Schlüter wrote:
> > On Thu, 2008-07-31 at 11:48 -0500, Matt Wilmas wrote:
> > > Ugh, I hate that reference/recursion stuff! I have a hard time
following
> > > what's happening, and am not sure how some of those checks, etc. even
work
> > > in php_array_merge() (which I was working from). :-/ I tried changing
a few
> > > parts, and unfortunately couldn't fix it. I will look at it further
when I
> > > have some more time, and will of course let you know if it's fixed.
Sorry.
> > > :-(
> >
> > I think I found a thing: you're iterating over src and src_entry, but
> > doing the recursion check using Z_ARRVAL_PP(dest_entry)->nApplyCount, I
> > didn't test it (need food first) but should do that with src_entry.
>
> FYI: that assumption seems to be correct and I committed it including
> the fix :-)
Uhh, it's been pretty long now (was sidetracked by non-PHP stuff...), but I
forgot to thank you for getting that code working, so thanks! (And it was
such a simple fix, heh. :-/) Sorry, but better late than never I guess. :-)
> johannes
- Matt