zendframework / zend-captcha

Captcha component from Zend Framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BC break introduced with 2.7 ?

marek-pietrzak-tg opened this issue · comments

Seems like 2.7 introduced BC breaks. We experiences a failure (Public key not found) with updating from 2.6 to 2.7.
Basically we had in our composer.json:

"zendframework/zend-captcha": "^2.6",
"zendframework/zendservice-recaptcha": "^2.0.1",

We switched back to 2.6 for now until we make sure we can go ahead with zendservice-recaptcha v3.

@mheki an example failure would help

@Ocramius I debugged further. We got this exception:

ZendService\ReCaptcha\Exception: Missing public key in C:\Apache24\htdocs\www\vendor\zendframework\zendservice-recaptcha\library\ZendService\ReCaptcha\ReCaptcha.php on line 380

because of:
v2.6: https://github.com/zendframework/zend-captcha/blob/release-2.6.0/src/ReCaptcha.php#L129-L134
vs v2.7
https://github.com/zendframework/zend-captcha/blob/release-2.7.0/src/ReCaptcha.php#L167-L180

We've been passing $options['private_key' => ..., 'public_key' => ...] obviously.

This repository has been closed and moved to laminas/laminas-captcha; a new issue has been opened at laminas/laminas-captcha#3.