Re: Constanst are case-insensitive

From: Date: Sat, 04 Aug 2001 21:17:38 +0000
Subject: Re: Constanst are case-insensitive
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-62123@lists.php.net to get a copy of this message
You can't have two constants with the same string but different case sensitivity. It's a limitation of the current implementation. Zeev At 09:03 05/08/2001, Andrei Zmievski wrote:
At 06:34 PM 8/4/01 +0300, Zeev Suraski wrote:
If you register the constant with CONST_CS, it will be case sensitive. Most of the constants in PHP are case sensitive.
But it doesn't work. I register GDK_A with CONST_CS and then when I try to register GDK_a with CONST_CS as well it complains that it's already registered. Try it yourself. -Andrei
-- Zeev Suraski <zeev@zend.com> CTO & co-founder, Zend Technologies Ltd. http://www.zend.com/

« previous php.dev (#62123) next »