Hi everyone

A heads-up to anyone using Zend_Filter_Input - there's a refactored version of Zend_Filter_Input added to the incubator that's ready for testing and comment by the community.

It was refactored after noticing the E_WARNING's being thrown up after the improvements made to Zend_Loader - the warnings were being thrown because Zend_Filter_Input cycled through a number of namespaces to try and match class names. E.g. if I wanted to access the validator 'Between' then firstly Zend_Filter_Input would try and match 'Zend_Filter_Between' (and fail) before finding Zend_Validate_Between. Previously no such warnings were emitted because Zend_Loader suppressed error messages.

The new component leverages the flexibility of the plugin loader and performs equally as well if not slightly more efficiently. A couple of notes:-

* The protected properties '_namespaces' and '_userNamespaces' are removed (made redundant) * The 'addNamespace()' method has been marked as deprecated but maintained for BC. It proxies to addFilterPrefixPath and addValidatePrefixPath to provide essentially the same functionality

Could anyone who uses (and perhaps subclasses) Zend_Filter_Input please give this a test run and make comment on it as soon as possible? I'd like to gauge if there's likely to be any conflicts before this can be added to trunk.

Cheers

--

Simon Mundy | Director | PEPTOLAB

""" " "" """""" "" "" """"""" " "" """"" " """"" "  """""" "" "

202/258 Flinders Lane | Melbourne | Victoria | Australia | 3000
Voice +61 (0) 3 9654 4324 | Mobile 0438 046 061 | Fax +61 (0) 3 9654 4124
http://www.peptolab.com

Reply via email to