Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39516 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45893 invoked from network); 31 Jul 2008 18:06:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Jul 2008 18:06:15 -0000 Authentication-Results: pb1.pair.com smtp.mail=johannes@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=johannes@php.net; 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:60290] helo=mail4.netbeat.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 43/42-32820-61FF1984 for ; Thu, 31 Jul 2008 14:06:15 -0400 Received: (qmail 29198 invoked by uid 507); 31 Jul 2008 18:06:09 -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 18:06:09 -0000 To: Matt Wilmas Cc: internals@lists.php.net, Lukas Kahwe Smith In-Reply-To: <01fc01c8f32d$3f42a7f0$0201a8c0@pc1> References: <01b401c8ec13$28cd3510$0201a8c0@pc1> <1217505976.5408.34.camel@goldfinger.johannes.nop> <01fc01c8f32d$3f42a7f0$0201a8c0@pc1> Content-Type: text/plain Date: Thu, 31 Jul 2008 20:06:08 +0200 Message-ID: <1217527569.5408.65.camel@goldfinger.johannes.nop> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 (2.22.3.1-1.fc9) Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [PATCH] New functions: array_replace[_recursive] From: johannes@php.net (Johannes =?ISO-8859-1?Q?Schl=FCter?=) Hi, 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 think: 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. That's at least where I'd poke around, can you try that, else I'll dig around there, after having some food :-) johannes