Re: Re: [Zend Engine 2] Constants
| From: | Daniel Lorch | Date: | Mon, 03 Dec 2001 21:02:24 +0000 |
| Subject: | Re: Re: [Zend Engine 2] Constants | ||
| References: | 1 2 3 4 5 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-72382@lists.php.net to get a copy of this message | ||
hi,
> Because some of the keys are case-insensitive and some aren't. Case
> insensitive hashes don't work if you want to mix the keys.
> In any case, I think the solution above is a good one because there are
> only 5 constants in the Zend Engine which are case-insensitive.
somewhere it was mentioned that the case-sensitivity could be either
switched on or off with a configuration directive. please refrain from
using too many configuration directives which change the behaviour of
PHP. it's a pain to develop a PHP script witch catches all these
special behaviours. for example, i cannot rely on $PHP_SELF being only
the script-name (depends on whether it's installed as mod_php or PHP
CGI), thus I got used to write basename($PHP_SELF); which solves this
problem.
but a normal PHP developer (=98%) just cannot know ALL "special
behaviours" of PHP.
Kind Regards,
Daniel Lorch