On Thu, 2010-06-24 at 23:02 +0100, Tim Schofield wrote: > On 24/06/10 22:41, James Long wrote: > > Perhaps I am missing something basic here. > > > > Why does the LOG_WARNING constant take on a value of 4, when > > it is defined with a value of 1? > > > > Thank you! > > > > Jim > > > > > > $ cat bug.php > > <? > > > > 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"; > > > > ?> > > $ php bug.php > > LOG_NORMAL 0 > > LOG_WARNING 4 > > LOG_ERROR 2 > > $ > > > > 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