Re: Unexpected behaviour from define()

From: 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:
Very 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 Tim
It would, you misspelt LOG_WARNING with a lowercase 'i' ;) Thanks, Ash http://www.ashleysheridan.co.uk
Thats what I was trying to illustrate, it worked with lower case i but not with upper case, but James has explained it. Thanks Tim

« previous php.general (#306412) next »