Issues

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

Description

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 \

Comments

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.

Hi Antonio, your patch does not include:

  • {{Zend_Form_Element_Captcha::addPrefixPath()}}
  • {{Zend_Form_Element_File::addPrefixPath()}}

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

Fixed in SVN r24848.