ZF-7297: Refactor Zend_Form_Element


I propose a small refactoring for speed and maintenability improvement. See attached file. Thanks to let me know if is it the right way to propose improvement.


I'm failing to see how this affects either performance or maintainability. Can you provide some benchmarks (and what was benchmarked) showing how it affects performance, as well as a rationale for why the change helps in maintainability?

Insthead of appending the string in the loop it dose it outside + removing 2 temporary variables.

Test result with trunk version (2012-07-30): Tests passed

New patch file. (rebase)

Applied patch on trunk (25074) and release-1.12 (25075)