Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40120 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16416 invoked from network); 28 Aug 2008 14:32:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Aug 2008 14:32:29 -0000 Authentication-Results: pb1.pair.com smtp.mail=php_lists@realplain.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=php_lists@realplain.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain realplain.com from 209.235.152.148 cause and error) X-PHP-List-Original-Sender: php_lists@realplain.com X-Host-Fingerprint: 209.235.152.148 mail958c35.nsolutionszone.com Linux 2.5 (sometimes 2.4) (4) Received: from [209.235.152.148] ([209.235.152.148:43605] helo=mail958c35.nsolutionszone.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 20/64-28891-BF6B6B84 for ; Thu, 28 Aug 2008 10:32:28 -0400 X-POP-User: wilmascam.centurytel.net Received: from pc1 (d36-195.rt-bras.wnvl.centurytel.net [69.179.163.195]) by mail958c35.nsolutionszone.com (8.13.6.20060614/8.13.1) with SMTP id m7SEWJPW006957; Thu, 28 Aug 2008 14:32:21 GMT Message-ID: <00e801c9091a$e1eac930$0201a8c0@pc1> To: =?UTF-8?Q?Johannes_Schl=C3=BCter?= Cc: References: <01b401c8ec13$28cd3510$0201a8c0@pc1> <1217505976.5408.34.camel@goldfinger.johannes.nop> <01fc01c8f32d$3f42a7f0$0201a8c0@pc1> <1217527569.5408.65.camel@goldfinger.johannes.nop> <1217542905.4168.1.camel@goldfinger.johannes.nop> Date: Thu, 28 Aug 2008 09:32:19 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1933 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1933 Subject: Re: [PHP-DEV] [PATCH] New functions: array_replace[_recursive] From: php_lists@realplain.com ("Matt Wilmas") 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