Details
Description
In Zend_Log_Writer_Syslog::facility is defined as string and it is sent to openlog() this way hence openlog()'s 3rd parameter should be long, choosen from the predefined PHP constans LOG*.
I would recommend to use the string with constant($this->_facility) and document that user should specify the constant name to use if required.
So the patch:
protected function _initializeSyslog() { self::$_lastApplication = $this->_application; self::$_lastFacility = $this->_facility; openlog($this->_application, LOG_PID, cnstant($this->_facility)); }
Attachments
Issue Links
| This issue is related to: | ||||
| ZF-10015 | add tests Zend_Log_Writer_SyslogTest and Zend_Log_Writer_ZendMonitorTest |
|
|
|
I made a typo in the code above ("cnstant" is "constant"). The last line should be: