I get the same results as you using PHP4. I can't explain this, since
constants are supposed to be case sensitive by default. They sure don't act
like they are. Looks like a bug to me.

Kirk

> -----Original Message-----
> From: almir [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 30, 2001 12:44 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] constants and case sensitivity
> 
> 
> just when I thought , nice I didn't know how does it work  i 
> found out that
> it is not wroking anyhow if I put
> 
> define ("rights", "RIGHTS", X);
> define ("Rights", "RIGHTS", X);
> 
> echo rights . "->" .defined("rights") ."  " .Rights ."->"
> .defined("Rights")."<br>";
> 
> regardless of X i always get
> RIGHTS->1 Rights->0
> but if i  change places of definiton it changes
> 
> define ("rights", "RIGHTS", X);
> define ("Rights", "RIGHTS", X);
> ..
>  Rights->0 RIGHTS->1
> 
> 
> again I am using 3.0.11 on IIS4
> 
> thanks
> 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: 
> [EMAIL PROTECTED]
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to