Re: [PHP-DEV] Constanst are case-insensitive

2001-08-05 Thread Zeev Suraski
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

Re: [PHP-DEV] Constanst are case-insensitive

2001-08-05 Thread Andrei Zmievski
At 12:17 AM 8/5/01 +0300, Zeev Suraski wrote: You can't have two constants with the same string but different case sensitivity. It's a limitation of the current implementation. That's exactly what I'm complaining about. ;-) Can we fix it soon? -Andrei -- PHP Development Mailing List

Re: [PHP-DEV] Constanst are case-insensitive

2001-08-05 Thread Zeev Suraski
No time for this in the near future, I'm afraid :I Zeev At 16:58 05/08/2001, Andrei Zmievski wrote: At 12:17 AM 8/5/01 +0300, Zeev Suraski wrote: You can't have two constants with the same string but different case sensitivity. It's a limitation of the current implementation. That's exactly

Re: [PHP-DEV] Constanst are case-insensitive

2001-08-05 Thread Andrei Zmievski
At 05:35 PM 8/5/01 +0300, Zeev Suraski wrote: No time for this in the near future, I'm afraid :I Um, the fix is trivial. Want me to do it? -Andrei -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [PHP-DEV] Constanst are case-insensitive

2001-08-05 Thread Zeev Suraski
I don't believe the fix is trivial at all. Hint - if it's just nuking the strtolower there, you got it wrong :) At 18:34 05/08/2001, Andrei Zmievski wrote: At 05:35 PM 8/5/01 +0300, Zeev Suraski wrote: No time for this in the near future, I'm afraid :I Um, the fix is trivial. Want me to do

Re: [PHP-DEV] Constanst are case-insensitive

2001-08-05 Thread Andi Gutmans
At 10:34 AM 8/5/2001 -0500, Andrei Zmievski wrote: At 05:35 PM 8/5/01 +0300, Zeev Suraski wrote: No time for this in the near future, I'm afraid :I Um, the fix is trivial. Want me to do it? Are you sure we want to have non-capitalized constants? It might be good practice to always have

Re: [PHP-DEV] Constanst are case-insensitive

2001-08-05 Thread Andrei Zmievski
At 06:43 PM 8/5/01 +0300, Zeev Suraski wrote: I don't believe the fix is trivial at all. Hint - if it's just nuking the strtolower there, you got it wrong :) You are right, it is not trivial. I spoke in haste. I have some ideas on how to make it work, but I'll have to test the performance

Re: [PHP-DEV] Constanst are case-insensitive

2001-08-04 Thread Zeev Suraski
If you register the constant with CONST_CS, it will be case sensitive. Most of the constants in PHP are case sensitive. Zeev At 08:34 04/08/2001, Andrei Zmievski wrote: Does PHP really support case-sensitive constants? PHP-GTK needs to register both GDK_A and GDK_a constants (they define key

Re: [PHP-DEV] Constanst are case-insensitive

2001-08-04 Thread Andrei Zmievski
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