Re: Possible problem in PEAR Log

From: Date: Wed, 03 Jul 2002 06:34:13 +0000
Subject: Re: Possible problem in PEAR Log
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-7446@lists.php.net to get a copy of this message
On Tue, Jul 02, 2002 at 11:29:34AM +0200, Tomas V.V.Cox wrote: > The function priorityToString() is probably break under Windows, because > some constant values are the same for ex: LOG_EMERG == LOG_ALERT == > LOG_CRIT == 1. I can see how the result would be suboptimal, but I don't see how it could be considered broken. If that's how the constants exist, there's little we can do to differentiate between them. As far as I know, it's legal for a switch statement to contain identical values for cases (although I haven't tested this; please let me know if I'm wrong); the interpreter should just select the first match. -- Jon Parise (jon@csh.rit.edu) . Information Technology (2001) http://www.csh.rit.edu/~jon/ : Computer Science House Member

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