Re: 4.1 & Declaration Case Persistance

From: Date: Thu, 03 May 2001 19:16:20 +0000
Subject: Re: 4.1 & Declaration Case Persistance
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-53745@lists.php.net to get a copy of this message
Hi Sterling- There are implementation-specific reasons of why this can be useful, but I was hoping to avoid the "I can't see why you'd want this" (very common on this list, and something I'm also guilty of, but limiting to the evolution of the language IMHO) argument in favor of "semantically that's probably the right way to do it, but it's not real important", which is why I'm willing to make the change if the concensus is that the change would be the right thing. I definetly believe it's not real important and will have no visible benefit to "most people". What I want to be sure of is that it won't hurt "most people" either. I'm not sure if the speed decrease would be noticeable. I don't get your argument about it being a kludge; I think what we have now is the kludge. I do agree a get_declared_class() would probably have a high WTF factor, which is why I favor changing the original to (like Andrei said) accept a parameter which determines its behavior. Thanks John On Thu, 3 May 2001, Sterling Hughes wrote: > On Thu, 3 May 2001, Wez Furlong wrote: > > > On 2001-05-03 22:51:41, "Wez Furlong" <wez@thebrainroom.com> wrote: > > > | "John Donagher" <john@webmeta.com> > > > > Right now, when a class (or method, or function) is declared, its > > name > > > > is zend_str_tolower()'d. > > > > it would be nice if the original casing on the class name was > > persisted > > > > so that functions like get_class would return the actual > > *as-declared* > > > > class name. > > > +1 > > > It will work, right (zend guys?). > > > I'd love to see it. > > I really don't see why you would want this (correct case of class names > being returned). But besides that, its not (imho) worth the speed > decrease (and kludge factor) to implement. > > -Sterling > > > -- John Donagher Application Engineer Intacct Corp. - Powerful Accounting on the Web 408-395-0989 720 University Ave. Los Gatos CA 95032 www.intacct.com Public key available off http://www.keyserver.net Key fingerprint = 4024 DF50 56EE 19A3 258A D628 22DE AD56 EEBE 8DDD

« previous php.dev (#53745) next »