RE: [PHP] constants and case sensitivity
| From: | Johnson, Kirk | Date: | Fri, 30 Mar 2001 20:06:06 +0000 |
| Subject: | RE: [PHP] constants and case sensitivity | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-46376@lists.php.net to get a copy of this message | ||
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:a.kazazic@medienhaus.co.at]
> Sent: Friday, March 30, 2001 12:44 PM
> To: php-general@lists.php.net
> 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: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>