ZF2-48: Cannot instantiate Zend_Form_Element_Captcha without adapter

Issue Type: Bug Created: 2011-08-12T16:35:36.000+0000 Last Updated: 2011-08-13T16:21:45.000+0000 Status: Resolved Fix version(s): Reporter: Michiel Staessen (mstaessen) Assignee: Pádraic Brady (padraic) Tags: - Zend\Form

  • zf-crteam-padraic
  • zf-crteam-priority

Related issues: Attachments:


see this bug:

Was a won't fix because of BC break. Please introduce break :) Instantiating elements with arrays is not elegant. See Configration Objects Thread in zf-contributors.

public function __construct($spec, $options = null) { parent::__construct($spec, $options); $this->setAllowEmpty(true) ->setRequired(true) ->setAutoInsertNotEmptyValidator(false) ->addValidator($this->getCaptcha(), true); }


Posted by Pádraic Brady (padraic) on 2011-08-13T16:21:45.000+0000

As noted in ZF-4221, this cannot be fixed without a BC break. As Zend\Form for ZF2 is being developed, I'd suggest keeping this issue in mind before ZF2 is finalised as a possible improvement. There is no ETA on Zend\Form 2.0 for the time being however.

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.