Re: 4.1 & Declaration Case Persistance
| From: | Shaun Batterton | Date: | Fri, 04 May 2001 13:54:55 +0000 |
| Subject: | Re: 4.1 & Declaration Case Persistance | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-53896@lists.php.net to get a copy of this message | ||
Good work Zeev. It's for a good cause. Everyone else just seems to be
whining... "i don't wanna".
Shaun
On Fri, 4 May 2001, Zeev Suraski wrote:
> The question was under what key the class entry should be stored... At any
> rate, it's a non-issue; Saving the 'beautiful' version of the class name
> is possible, but is a bit hacky IMHO. There should be an optional case
> sensitive mode, and we'll introduce one in one of the future versions of PHP.
>
> Zeev
>
> At 18:04 4/5/2001, Colin Viebrock wrote:
> > > I don't think it is trivial to implement this without:
> > > a) Creating a second version of our hash tables (I don't like duplicate
> >code).
> > > b) Adding more complexity to the already complex hash tables.
> >
> >I don't know enough about Zend internals to speak with any authority, but
> >wouldn't an "easy" way of doing this be to:
> >
> >a) store *only* the mixed case version of the class name in the hash table,
> >and
> >b) change get_class(), etc. so that they automatically pass the result
> >through strtolower() (or whatever) first ... unless the optional second
> >argument is passed, in which case it's just returned as is.
> >
> >You wouldn't need a bigger nor an additional hash table, AFAICT, and only
> >what I imagine is relatively minor code changes to the get_class(), etc.
> >functions.
> >
> >- Colin
> >
> >
> >--
> >PHP Development Mailing List <http://www.php.net/>
> >To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> >For additional commands, e-mail: php-dev-help@lists.php.net
> >To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
> --
> Zeev Suraski <zeev@zend.com>
> CTO & co-founder, Zend Technologies Ltd. http://www.zend.com/sÀ4¤á[Q
> #Õhž“Ú
>
>
>
--