Issues

ZF-2754: Rendering a form after clearElements() has been called raises an exception

Issue Type: Bug Created: 2008-02-28T08:47:25.000+0000 Last Updated: 2008-03-21T16:25:36.000+0000 Status: Resolved Fix version(s): - 1.5.0 (17/Mar/08)

Reporter: Matthew Weier O'Phinney (matthew) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Form

Related issues: - ZF-2757

Attachments:

Description

Reproduce code:

<pre class="highlight">
$form = new Zend_Form();
$form->addElements(array(
    'username' => 'text',
    'password' => 'text',
));
$form->clearElements();
echo $form;

Expected: XHTML form with no content.

Actual:

<pre class="highlight">
PHP Warning:  Corruption detected in form; invalid key found in internal iterator in .../framework/library/Zend/Form.php on line 2125

Comments

Posted by Rob Allen (rob) on 2008-03-03T08:49:44.000+0000

calling $form->clearDisplayGroups() causes the same exception.

Posted by Matthew Weier O'Phinney (matthew) on 2008-03-07T08:13:47.000+0000

Fixed in trunk and 1.5 release branch

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