On Fri, 2002-02-08 at 10:55, Yasuo Ohgaki wrote: > Andi Gutmans wrote: > > At 07:58 AM 2/7/2002 +0100, Stig S. Bakken wrote: > > > >> After careful consideration on the CS issue I must say I agree with John > >> here. The _only_ case where I feel CS is a problem, is when dealing > >> with other environments. But the price for changing this today is > >> simply too high. It should have been done in PHP 3.0. We have other BC > >> issues to soak our brains in. > > Why not in PHP5? PHP5 breaks BC badly with new name space > support, anyway. Obviously, main concern for PHP5 is not > compatibility, not like PHP4. Right? > > >> > >> HOWEVER, I would like to suggest one compromise: storing class names > >> (and maybe function names) exactly as they were spelled in the > >> definition, and have get_class() etc. return that version instead of the > >> lowercased one. This would at least make us able to expose interfaces > >> with the intended case. > > 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. > > <?php > > class Foo() { > var v = 'abc'; > } > > $obj = new FOO; > > if (get_class($obj) === "foo") { > // do something useful > } > ?> > > BTW, this is one the case that automatic case conversion > for case sensitive name is difficult...
Can be solved easily by having a separate function for returning the pretty name. - Stig -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php