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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php