Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38295 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39756 invoked from network); 16 Jun 2008 20:07:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jun 2008 20:07:42 -0000 Authentication-Results: pb1.pair.com smtp.mail=christopher.jones@oracle.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=christopher.jones@oracle.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain oracle.com from 148.87.113.118 cause and error) X-PHP-List-Original-Sender: christopher.jones@oracle.com X-Host-Fingerprint: 148.87.113.118 rgminet01.oracle.com Linux 2.4/2.6 Received: from [148.87.113.118] ([148.87.113.118:49172] helo=rgminet01.oracle.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 93/68-06776-B08C6584 for ; Mon, 16 Jun 2008 16:07:40 -0400 Received: from agmgw2.us.oracle.com (agmgw2.us.oracle.com [152.68.180.213]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id m5GK7Y24018354; Mon, 16 Jun 2008 14:07:34 -0600 Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by agmgw2.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m5G5AvoL013455; Mon, 16 Jun 2008 14:07:33 -0600 Received: from dhcp-5op3-5op4-east-130-35-71-97.usdhcp.oraclecorp.com by acsmt355.oracle.com with ESMTP id 10260185521213646815; Mon, 16 Jun 2008 13:06:55 -0700 Message-ID: <4856C7DE.3000109@oracle.com> Date: Mon, 16 Jun 2008 13:06:54 -0700 User-Agent: Thunderbird 2.0.0.14 (X11/20080505) MIME-Version: 1.0 To: Dave Lee CC: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE Subject: Re: [PHP-DEV] case folding array string keys From: christopher.jones@oracle.com (Christopher Jones) Dave Lee wrote: > Hi, > I have a patch that I'm hoping might be useful to PHP developers, at least > those using PostgreSQL. The patch provides case folding of string keys > during hash lookups. The need for this comes from ... > My question to the list is, can this functionality be added in a way that > doesn't adversely effect developers who won't use it, but helps us > PostgreSQL users and anyone else who might find it useful? Judging from my > searches on the subject, it's not an uncommon impedance for PHP/PostgreSQL > users. Oracle columns names are similarly case insensitive - unless the table was created with quoted column names. Users can see similar issues. I think a PHP solution is more likely to need to be handled the way PDO does, see PDO::CASE_xxxx. However, what about creating an RFC on the wiki to share what you have done and found. Do you have any benchmarks? Chris -- Christopher Jones, Oracle Email: christopher.jones@oracle.com Tel: +1 650 506 8630 Blog: http://blogs.oracle.com/opal/ Free PHP Book: http://tinyurl.com/f8jad