ZF-5004: Zend_OpenId_Consumer - Fails to associate with the provider

Issue Type: Bug Created: 2008-11-20T04:34:30.000+0000 Last Updated: 2008-12-21T05:47:41.000+0000 Status: Resolved Fix version(s): - 1.7.1 (01/Dec/08)

Reporter: Shunmuga Prasath (shunmugaprasath) Assignee: Dmitry Stogov (dmitry) Tags: - Zend_OpenId

Related issues: Attachments:


Zend_OpenId_Consumer fails to associate with the openID provider. Tried two providers, verisign and myopenid.

The method _associate in Zend_OpenId_Consumer returns false. The following condition

if (strlen($secret) != 32) { return false; }

fails and hence consumer is not able to associate with provider. When i do a var_dump of $secret i get (length=32). but strlen doesnt return 32 making the above condition false.

Update:- I do have mbstring installed. Below is the what phpinfo shows

mbstring Multibyte Support enabled Multibyte string engine libmbfl Multibyte (japanese) regex support enabled Multibyte regex (oniguruma) version 3.7.1

mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.

Directive Local Value Master Value mbstring.detect_order no value no value mbstring.encoding_translation Off Off mbstring.func_overload 2 2 mbstring.http_input pass pass mbstring.http_output pass pass mbstring.internal_encoding UTF-8 UTF-8 mbstring.language neutral neutral mbstring.script_encoding no value no value mbstring.strict_detection Off Off mbstring.substitute_character no value no value


Posted by Dmitry Stogov (dmitry) on 2008-12-01T03:10:51.000+0000

Do you have ext/mbstring installed? I suppose it might be the reason of this failure.

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.