Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.7.6
-
Fix Version/s: 1.8.4
-
Component/s: Zend_Captcha
-
Labels:None
Description
I like to integrate Zend_Captcha in an old project - but i need to create an instance of Zend_View only to fit the first argument of Zend_Captcha_Adapter::render().
<?php
$captcha = new Zend_Captcha_Dump()
$id = $captcha->generate();
echo $captcha->render(new Zend_View());
?>
Would it not be better, to make the first argument optional?
Currently no adapter use the first argument! Future one might - but they can check this and throw an exception if its not present.
Patch added to provide a simple solution