Re: Re: Case sensitivity: Conclusion(?)
| From: | Zeev Suraski | Date: | Fri, 08 Feb 2002 23:41:21 +0000 |
| Subject: | Re: Re: Case sensitivity: Conclusion(?) | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-79782@lists.php.net to get a copy of this message | ||
I think that's a nightmare, WTF-factor wise... Just my 0.02NIS
Zeev
At 12:14 AM 2/9/2002, Jason Greene wrote:
If you are already thinking about storing the case sensitive name for
the class/function why not follow Rasmus's suggestion for calling the
exact case function first, then look for a case insens match.
search case preserved function_table
if not found {
search lowercase function_table
if not found die with "Unknown function"
}
There is no performance penalty unless you mix case. There is of course
the extra memory needed for 2 tables.
--
Jason T. Greene
Internet Software Engineer
<jason@inetgurus.net>
<jason@php.net>
<jason.greene@tdstelecom.com>
Use PHP: http://www.php.net
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php