OpenID Library for PHP 5.3

Does anyone have openid working in a PHP 5.3 installation? None of the libraries I tried seemed to work.

+6
php openid
source share
4 answers

Well, I finally managed to fix the library ... I explained everything here (you can also download the php-openid library after my changes).

I needed to do what Pavel Taryan suggested, but I also needed to change the Auth_OpenID_detectMathLibrary and add the static to many functions. After that, it seems to work fine, although this is not an ideal solution ... I think someone should rewrite the whole library in PHP 5 ...

+4
source share

The solution is to remove all elements passed by reference in php-openid.

change

 foo(&$param) 

to

 foo($param) 

and the library should work again.

+2
source share

Zend_OpenId is compatible with PHP 5.3, however it supports OpenID 1.1 and will not work with Google (which uses OpenID 2.0). The Janain OpenID system, usually available through http://openidenabled.com/php-openid/ , is the one I use for my PHP 5 application (the OpenID-enabled site is currently down a bit for maintenance today) is also one of the most popular PHP OpenID implementations (only a small problem is that it uses temporary files for OpenID sessions, which makes its work in a multi-server environment a bit complicated).

0
source share

For me, this library worked: http://gitorious.org/lightopenid

0
source share

All Articles