Charl van Niekerk » Blog

Main

Latest

Archives

Powered by Blogger

Zend Framework OpenID Bug

I am setting up an OpenID provider tonight using Zend Framework's OpenID library but ran into strange issues when it came to passing "extension" variables. On the consumer side, the variables were passed back but they all had a value of 1 instead of the full string value for some reason. After quite a bit of searching, I found a "small" bug in Zend/OpenId/Extension/Sreg.php. After I added exactly 7 characters to the file, everything worked as expected. Here is my diff:

--- Sreg.php.bak        2008-04-27 02:07:31.000000000 +0200
+++ Sreg.php    2008-04-27 02:10:24.000000000 +0200
@@ -189,7 +189,7 @@
         $props2 = array();
         foreach (self::getSregProperties() as $prop) {
             if (isset($props[$prop])) {
-                $props2[$prop] = $props[$prop];
+                $props2[$prop] = $this->_props[$prop];
             }
         }

I tried to submit this bug on the issue tracker but I have to wait for them to authorise me first.

2 Comments

Comment by Anonymous Wil SInclair on Monday, April 28, 2008 7:50:00 PM

We've got the issue tracker down today for maintenance. I'm forwarding this directly to Dmitry so it can be addressed quickly. Hope Zend_OpenId is treating you well otherwise!

,Wil

Comment by Blogger Charl van Niekerk on Monday, April 28, 2008 9:55:00 PM

Thanks Wil! Yes otherwise it is being really great!

Post a Comment

Copyright © 2004-2009 Charl van Niekerk. All articles are released under the Creative Commons Attribution 2.5 South Africa licence, unless where otherwise stated.