openid/php-openid — pull request #75 by cakebaker (2012-08-14 13:39:06+00:00)
Title: Fixing "preg_match_all() expects parameter 2 to be string, array given" error

When using PHP with the mbstring extension not enabled, you will get a "preg_match_all() expects parameter 2 to be string, array given" error when you try to make an OpenID request.

The problem is that in this case the method Auth_OpenID_Parse#match() returns an array whereas it returns a string when the mbstring extension is enabled.

This fix makes the method return a string in both cases.