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


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


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