Issues

ZF2-512: InputFilter cannot be serialized

Issue Type: Improvement Created: 2012-08-31T07:02:54.000+0000 Last Updated: 2012-10-08T20:14:45.000+0000 Status: Closed Fix version(s): Reporter: Juha Suni (zuhac) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend\Filter

  • Zend\InputFilter
  • Zend\Validator

Related issues: Attachments:

Description

Both ValidatorChain and InputFilterChain have references to ServiceManager, which in turn registers Traits. For this reason chains cannot be serialized, and as a result InputFilter cannot be serialized.

According to my tests, cached (and serialized) InputFilter adds 10X performance improvement compared to InputFilter that is initialized from the scratch.

Comments

Posted by Juha Suni (zuhac) on 2012-08-31T07:03:10.000+0000

Pull request coming soon, the fix is dead simple.

Posted by Ralph Schindler (ralph) on 2012-10-08T20:14:45.000+0000

This issue has been closed on Jira and moved to GitHub for issue tracking. To continue following the resolution of this issues, please visit: https://github.com/zendframework/zf2/issues/2548

Have you found an issue?

See the Overview section for more details.

Copyright

© 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.

Contacts