Re: 4.1 & Declaration Case Persistance

From: Date: Thu, 03 May 2001 21:11:40 +0000
Subject: Re: 4.1 & Declaration Case Persistance
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-53727@lists.php.net to get a copy of this message
> Any opinions? Have I overlooked something that makes this more difficult than > it seems? I'm willing to work on this if I can gather some positive concensus. For one thing, I would have to change all my code from: if (get_class($var)=='foo_class')) { ... } ... to: if (get_class($var)=='Foo_Class')) { ... } ... (assuming I know how it was declared), or to: if (strtolower(get_class($var))=='foo_class')) { ... } ... which I personally think is kludgy. Ditto for function_exists(), I assume. Or are you suggesting something like: getOriginalDeclaredName('foo_class'); // returns 'Foo_Class'; ... which I don't have a problem with, I suppose. Then again, I don't write the Zend code. :) I don't follow how having the full case of the original declaration would help you. - Colin

« previous php.dev (#53727) next »