ZF-10793: Zend_View_Helper_Placeholder_Registry::createContainer - second param is unusable
Description
second param "$value" in method "createContainer" does not participate in containerClass constructor.
Real code:
class Zend_View_Helper_Placeholder_Registry { public function createContainer($key, array {color:red} $value {color} = array()) { $key = (string) $key;
$this->_items[$key] = new $this->_containerClass({color:red}array(){color});
return $this->_items[$key];
}
}
Solution:
class Zend_View_Helper_Placeholder_Registry { public function createContainer($key, array {color:red} $value {color} = array()) { $key = (string) $key;
$this->_items[$key] = new $this->_containerClass( {color:red} $value {color} );
return $this->_items[$key];
}
}
Comments
Posted by Ramon Henrique Ornelas (ramon) on 2010-12-17T17:43:35.000+0000
Fixed in trunk r23544 merged to release branch 1.11 r23545 - thanks.