Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39224 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86096 invoked from network); 23 Jul 2008 12:18:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jul 2008 12:18:27 -0000 Authentication-Results: pb1.pair.com header.from=mls@pooteeweet.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=mls@pooteeweet.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pooteeweet.org from 88.198.8.16 cause and error) X-PHP-List-Original-Sender: mls@pooteeweet.org X-Host-Fingerprint: 88.198.8.16 bigtime.backendmedia.com Linux 2.6 Received: from [88.198.8.16] ([88.198.8.16:52378] helo=bigtime.backendmedia.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 09/BD-12534-29127884 for ; Wed, 23 Jul 2008 08:18:27 -0400 Received: from localhost (unknown [127.0.0.1]) by bigtime.backendmedia.com (Postfix) with ESMTP id 429321EBC017; Wed, 23 Jul 2008 12:19:31 +0000 (UTC) X-Virus-Scanned: amavisd-new at backendmedia.com Received: from bigtime.backendmedia.com ([127.0.0.1]) by localhost (bigtime.backendmedia.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 86M2pbP3RRdU; Wed, 23 Jul 2008 14:19:30 +0200 (CEST) Received: from guest-77-74-2-40.pwlan.abanet.ch (guest-77-74-2-40.pwlan.abanet.ch [77.74.2.40]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mls@pooteeweet.org) by bigtime.backendmedia.com (Postfix) with ESMTP id 497D01EBC016; Wed, 23 Jul 2008 14:19:30 +0200 (CEST) Cc: internals@lists.php.net Message-ID: To: Christian Schneider In-Reply-To: <18.5D.12534.2EF17884@pb1.pair.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v928.1) Date: Wed, 23 Jul 2008 14:16:57 +0200 References: <01b401c8ec13$28cd3510$0201a8c0@pc1> <18.5D.12534.2EF17884@pb1.pair.com> X-Mailer: Apple Mail (2.928.1) Subject: Re: [PHP-DEV] Re: [PATCH] New functions: array_replace[_recursive] From: mls@pooteeweet.org (Lukas Kahwe Smith) On 23.07.2008, at 14:11, Christian Schneider wrote: >> array_replace_recursive() will do the same except that it becomes >> recursive only when both the destination and source entries are >> arrays, otherwise the new source entry still replaces any existing >> one. > > Hmm, generic enough to be included? A frequent use case is merging a multi dimensional configuration array with a multi dimensional array containing defaults. At the same time I cannot find a single use case for the current array_merge_recursive(). regards, Lukas Kahwe Smith mls@pooteeweet.org