Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45630 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9370 invoked from network); 22 Sep 2009 19:26:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Sep 2009 19:26:08 -0000 Authentication-Results: pb1.pair.com smtp.mail=jani.taskinen@sci.fi; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=jani.taskinen@sci.fi; sender-id=unknown Received-SPF: error (pb1.pair.com: domain sci.fi from 204.13.248.71 cause and error) X-PHP-List-Original-Sender: jani.taskinen@sci.fi X-Host-Fingerprint: 204.13.248.71 mho-01-ewr.mailhop.org Received: from [204.13.248.71] ([204.13.248.71:55855] helo=mho-01-ewr.mailhop.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CC/2B-48603-0D429BA4 for ; Tue, 22 Sep 2009 15:26:08 -0400 Received: from cs181029147.pp.htv.fi ([82.181.29.147] helo=[127.0.0.1]) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1MqB02-0005kp-5F; Tue, 22 Sep 2009 19:26:06 +0000 X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 82.181.29.147 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX18FTDvTRRicdaq47xNOI5iptd+j267lO5U= Message-ID: <4AB92525.5050404@sci.fi> Date: Tue, 22 Sep 2009 22:27:33 +0300 Reply-To: jani.taskinen@iki.fi User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Matthew Fonda CC: PHP internals References: <1aac0f2d0909221015t1ee5e3e4n73a29e04bdabee3a@mail.gmail.com> In-Reply-To: <1aac0f2d0909221015t1ee5e3e4n73a29e04bdabee3a@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [patch] Allow array_change_key_case to support ucfirst and lcfirst From: jani.taskinen@sci.fi (Jani Taskinen) Matthew Fonda wrote: > Hi All, > > I came across a situation where I had to make the first character of an > arrays keys uppercase, and found the array_change_key_case function, but > noticed it only supported CASE_UPPER and CASE_LOWER. Attached is a patch > to also add support for CASE_LCFIRST and CASE_UCFIRST. > > The patch is against PHP_5_3. I wasn't sure which branch I should write > it for--let me know if it should be against another branch. This is my > first patch submission so any comments are appreciated. New stuff -> HEAD only (aka trunk :) --Jani