Re: Unexpected behaviour from define()
| From: | Tim Schofield | Date: | Thu, 24 Jun 2010 22:22:59 +0000 |
| Subject: | Re: Unexpected behaviour from define() | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-306412@lists.php.net to get a copy of this message | ||
On 24/06/10 23:08, Ashley Sheridan wrote:
On Thu, 2010-06-24 at 23:02 +0100, Tim Schofield wrote:
Thats what I was trying to illustrate, it worked with lower case i but not with upper case, but James has explained it. Thanks TimVery strange, as <? define( 'LOG_NORMAL', 0 ); define( 'LOG_WARNiNG', 1 ); define( 'LOG_ERROR', 2 ); echo 'LOG_NORMAL ' . LOG_NORMAL ."\n"; echo 'LOG_WARNiNG ' . LOG_WARNiNG ."\n"; echo 'LOG_ERROR ' . LOG_ERROR ."\n"; ?> seems to work fine TimIt would, you misspelt LOG_WARNING with a lowercase 'i' ;) Thanks, Ash http://www.ashleysheridan.co.uk