On Fri, 2002-02-08 at 06:16, Andi Gutmans wrote: > At 09:06 PM 2/8/2002 +0900, Yasuo Ohgaki wrote: > >Marko Karppinen wrote: > >>Yasuo: > >> > >>>Hmm. I vote -1 for this. > >>>It just does not make sense to store original(case sensitive) > >>>names while langage ignores case. It's also confusing, lead > >>>to case sensitivity BC problem anyway just like with case > >>>sensitive function/names. > >>Case preservation makes very much sense in a case-insensitive environment. > >>Just look at file system implementations from Apple and Microsoft, where, > >>believe it or not, a lot of thought has gone into this issue. > >>I had a private chat with Jason Greene about this, and I came out with the > >>understanding that the .NET/SOAP interop issues mentioned here earlier by > >>Markus and Jason are actually issues with PHP not preserving case rather > >>than with PHP not being fully case-sensitive. > > > >It will be confusing PHP preserve case for other while > >internally case insensitve... > > > >Therefore, -1 for this :) > > It won't be confusing. You are just -1 because you want case sensitivity. > How will it confuse you? The only thing it will allow is to support > interoperability. It wouldn't confuse people writing PHP code. > I don't mind you being against case insensitivity. You can have whatever > opinion you want but it doesn't mean you need to find bad reasons :) > > > >>And since Andi promised to take a shot at making case preservation happen, > >>it seems like we are on our way to better interoperability without too much > >>BC hassles. > > > >If get_class() or like returns names with case preserved, > >it breaks BC. I expect additional parameter for all of > >these functions if it really implemented. > > Stig answered this one. > > >I hope not, since it's a additional memory and performance loss... > > There is no chance in hell you'd notice the additional memory :) And the > performance difference would be negligible because what can be done at > compile-time is already done in ZE2. > > Andi
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 <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Use PHP: http://www.php.net -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php