ZF-12303: useDefaultFilters option in Zend_Markup factory has no effect

Issue Type: Bug Created: 2012-06-23T23:38:03.000+0000 Last Updated: 2012-06-23T23:38:03.000+0000 Status: Open Fix version(s): Reporter: Alexander Romanenko (alextech) Assignee: Pieter Kokx (kokx) Tags: - Zend_Markup

  • state:need-feedback

Related issues: Attachments:


$bbcode = Zend_Markup::factory('Bbcode', 'Html', array('useDefaultFilters' => false)); has no effect. render() method in RendererAbstract calls getDefaultFilter() which in turn calls addDefaultFilters() without checking for the option. It does not even have a way to check for that option because __constructor() keeps the options in local scope. I suggest adding a protected property $_options and assign to it the $options array in construct so that addDefaultFilters() method can check for its value with

if (null === $this->_defaultFilter && (!isset($this->_options['useDefaultFilters']) || ($this->_options['useDefaultFilters'] === true)) ) {


No comments to display

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.