Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39518 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27201 invoked from network); 31 Jul 2008 22:21:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Jul 2008 22:21:58 -0000 Authentication-Results: pb1.pair.com header.from=johannes@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 83.243.58.163 as permitted sender) X-PHP-List-Original-Sender: johannes@php.net X-Host-Fingerprint: 83.243.58.163 mail4.netbeat.de Received: from [83.243.58.163] ([83.243.58.163:56637] helo=mail4.netbeat.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 73/11-21617-30B32984 for ; Thu, 31 Jul 2008 18:21:58 -0400 Received: (qmail 5769 invoked by uid 507); 31 Jul 2008 22:21:50 -0000 Received: from ppp-82-135-5-150.dynamic.mnet-online.de (HELO ?192.168.1.101?) (postmaster%schlueters.de@82.135.5.150) by mail4.netbeat.de with ESMTPA; 31 Jul 2008 22:21:50 -0000 To: Matt Wilmas Cc: internals@lists.php.net, Lukas Kahwe Smith In-Reply-To: <1217527569.5408.65.camel@goldfinger.johannes.nop> References: <01b401c8ec13$28cd3510$0201a8c0@pc1> <1217505976.5408.34.camel@goldfinger.johannes.nop> <01fc01c8f32d$3f42a7f0$0201a8c0@pc1> <1217527569.5408.65.camel@goldfinger.johannes.nop> Content-Type: text/plain; charset=utf-8 Date: Fri, 01 Aug 2008 00:21:45 +0200 Message-ID: <1217542905.4168.1.camel@goldfinger.johannes.nop> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 (2.22.3.1-1.fc9) Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] [PATCH] New functions: array_replace[_recursive] From: johannes@php.net (Johannes =?ISO-8859-1?Q?Schl=FCter?=) 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 :-) johannes