Re: Re: Possible problem in PEAR Log

From: Date: Thu, 04 Jul 2002 20:43:15 +0000
Subject: Re: Re: Possible problem in PEAR Log
References: 1 2 3 4 5 6 7 8 9  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-7472@lists.php.net to get a copy of this message
On Wed, Jul 03, 2002 at 05:34:14PM +0100, Michael Dransfield wrote: > It was only marked as a possible problem, couldnt it be solved by using a > seperate set of constants (PEAR_LOG_*) which could then be mapped to the > LOG_ constants if needed for syslog features where the integer is needed. If the Log package were defining its own set of constants, I would agree with you. Otherwise, I see no need to introduce wrappers around existing constants. The only way to maintain backwards compatiblity with the LOG_* contants would be to add an equivalent PEAR_LOG_* constant, and that would get us nowhere. I think the best solution would probably be something like this: /* Short circuit for Windows */ if (Windows) { if ($priority == 6) { return 'info'; } } (proceed with normal mapping) -- Jon Parise (jon@csh.rit.edu) . Information Technology (2001) http://www.csh.rit.edu/~jon/ : Computer Science House Member

« previous php.pear.dev (#7472) next »