ZF-10769: lost the facility in syslog

Description

If the constructor of Zend_Log_Writer_Syslog is called with $params array, the _facility property will set by setFacility method. The Problem is, that setFacility will return $this or return void in older versions, the facility property will be overwritten.

Index: library/Zend/Log/Writer/Syslog.php

--- library/Zend/Log/Writer/Syslog.php (revision 23466) +++ library/Zend/Log/Writer/Syslog.php (working copy) @@ -103,7 +103,7 @@

     $runInitializeSyslog = true;
     if (isset($params['facility'])) {

- $this->_facility = $this->setFacility($params['facility']); + $this->setFacility($params['facility']); $runInitializeSyslog = false; }

Comments

Index: library/Zend/Log/Writer/Syslog.php

--- library/Zend/Log/Writer/Syslog.php (revision 23466) +++ library/Zend/Log/Writer/Syslog.php (working copy) @@ -103,7 +103,7 @@

     $runInitializeSyslog = true;
     if (isset($params['facility'])) {

- $this->_facility = $this->setFacility($params['facility']); + $this->setFacility($params['facility']); $runInitializeSyslog = false; }

Fixed in trunk r23467 merged to release branch 1.11 r23468 - thanks.