ZF-2550: Refactor Zend_Filter_Input to use Zend_Loader_PluginLoader

Issue Type: Improvement Created: 2008-02-02T22:09:55.000+0000 Last Updated: 2008-03-21T16:25:30.000+0000 Status: Resolved Fix version(s): - 1.5.0 (17/Mar/08)

Reporter: Simon Mundy (peptolab) Assignee: Simon Mundy (peptolab) Tags: - Zend_Filter_Input

Related issues: Attachments:


After a recent update to Zend_Loader, Zend_Filter_Input began emitting warning errors for non-existent classes. This is because Zend_Filter_Input was using a base 'namespace' property to derive the base name for both filters and validators and would try both before matching the correct class name.

This needs to be refactored to allow Zend_Loader_PluginLoader to locate the correct class name more efficiently and to also refine the API for Zend_Filter_Input to allow better distinction between filter and validator namespaces.


Posted by Darby Felton (darby) on 2008-02-04T13:41:52.000+0000

Fix for next minor release (1.5.0 RC1)

Posted by Darby Felton (darby) on 2008-02-04T14:52:30.000+0000

The removal of the following protected members could affect extending classes:

<pre class="highlight">
protected $_namespaces = array('Zend_Filter', 'Zend_Validate');
protected $_userNamespaces = array();

The behavioral changes in _getFilterOrValidator() may also pose backward-compatibility problems, but I'm unsure how many people might be extending it and using the method.

Posted by Wil Sinclair (wil) on 2008-02-11T13:12:37.000+0000

Simon, will you have time to get to this in the next couple of days? This is on the very short :) list of 1.5 unresolved must-haves. We'll have to resolve it very soon!

Thanks. ,Wil

Posted by Simon Mundy (peptolab) on 2008-02-11T22:14:40.000+0000

Hi Wil - was just waiting for the OK from Darby. It's all been committed now.

Posted by Simon Mundy (peptolab) on 2008-02-11T22:16:24.000+0000

Resolved in 7939

Have you found an issue?

See the Overview section for more details.


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

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