Re: [PATCH] Log/syslog.php fix

From: Date: Fri, 25 Oct 2002 23:03:46 +0000
Subject: Re: [PATCH] Log/syslog.php fix
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-10265@lists.php.net to get a copy of this message
On Fri, Oct 25, 2002 at 05:41:15PM -0400, Andres Salomon wrote: > Log.php encourages a default value of '' for $name in Log's constructor; > however, if passed along to Log/syslog.php's constructor, openlog() > gives an error about expecting an integer instead of a string. So, this > patch sets Log_syslog::_name to LOG_SYSLOG, if it's not set. I'd also > suggest some type checking here (if (!is_int($name) || > $is_int($maxLevel)) return false), but that's less of an issue here. Good point. I've just committed a slightly modified version of your patch. Thanks! -- Jon Parise (jon@php.net) :: The PHP Project (http://www.php.net/)

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