Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24375 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73537 invoked by uid 1010); 14 Jul 2006 10:37:06 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 73517 invoked from network); 14 Jul 2006 10:37:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Jul 2006 10:37:06 -0000 X-PHP-List-Original-Sender: php_lists@realplain.com X-Host-Fingerprint: 209.142.136.132 msa2-mx.centurytel.net Linux 2.4/2.6 Received: from ([209.142.136.132:45890] helo=msa2-mx.centurytel.net) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id 90/94-41830-BC377B44 for ; Fri, 14 Jul 2006 06:37:05 -0400 Received: from pc1 (d30-216.rt-bras.wnvl.centurytel.net [69.179.157.216]) by msa2-mx.centurytel.net (8.13.6/8.13.6) with SMTP id k6EAau0k003282 for ; Fri, 14 Jul 2006 05:36:56 -0500 Message-ID: <007901c6a731$6e36a970$0201a8c0@pc1> To: Date: Fri, 14 Jul 2006 05:36:56 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1807 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 Subject: [PATCH] array_fill_keys From: php_lists@realplain.com ("Matt W") Hi, Here's a patch to add the array_fill_keys() function instead of extending array_fill(). I left the bit of cleanup/tweaks I had done to array_fill. Can someone please review and let me know if anything needs changing? I have a feeling something will still be wrong it -- works fine, but with recent code changes, it looks like you're switching to zend_parse_parameters() where ...get_parameters_ex() had been used. Of course I used get_parameters, following array_fill. So do I need to change it, and is that only for MAIN branch? Also wasn't sure if I should mark the new function "U"nicode compatible. I'm just going to link to the files instead of attaching. I made simple tests for array_fill_keys(), but I couldn't add a new file to CVS, so it's a separate file. I don't have diffs online yet for PHP_5_2 -- wanted to get these looked at first. :-) http://realplain.com/php/array_fill_keys.diff http://realplain.com/php/array_fill_keys.phpt Thanks if you give this attention, Matt