ZF-12173: Zend_Form and Zend_Form_Element prefix paths are not prefix agnostic (namespaces)

Issue Type: Bug Created: 2012-04-26T07:38:09.000+0000 Last Updated: 2012-06-04T13:58:42.000+0000 Status: Resolved Fix version(s): Reporter: Antonio J García Lagar (ajgarlag) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Form

  • FixForZF1.12
  • zf-crteam-priority
  • zf-crteam-review

Related issues: - ZF-7350

Attachments: - zf-12173-fix.diff


I've migrated my personal library to namespaces and I've detected that the namespaced prefix paths are not properly handled by the plugin loader because both Zend_Form and Zend_Form_Element add "_$type" as suffix to the plugin path when they should detect if the namespace separator is _ or \


Posted by Antonio J García Lagar (ajgarlag) on 2012-04-26T07:50:46.000+0000

I've submitted two diff files, one for tests and one for the fix itself. Note that this issue depends on ZF-11330, so the fix for ZF-11330 should be applied in order to make this one work.

Posted by Frank Brückner (frosch) on 2012-04-26T08:18:51.000+0000

Hi Antonio, your patch does not include:

  • Zend_Form_Element_Captcha::addPrefixPath()
  • Zend_Form_Element_File::addPrefixPath()

Posted by Antonio J García Lagar (ajgarlag) on 2012-04-26T08:51:48.000+0000

I've fixed the Zend_Form_Element_File and Zend_Form_Element_Captcha addPrefixPath methods too.

Posted by Rob Allen (rob) on 2012-05-31T19:29:06.000+0000

Fixed in SVN r24848.

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.