FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.

FutureQuest, Inc.
Go Back   FutureQuest Community > General Site Owner Support (All may read/respond) > PHP, Perl, Python and/or MySQL
User Name
Password  Lost PW

Reply
 
Thread Tools Search this Thread Display Modes
Old 09-02-2008, 12:35 AM   Postid: 169896
oacis
Site Owner

Forum Notability:
105 pts: Helpful Contributor
[Post Feedback]
 
Join Date: Jan 2004
Location: Los Angeles, CA USA
Posts: 25
JanRain OpenID library

Has anyone successfully installed the JanRain OpenID library here at FutureQuest?

The library tries to determine which XML parser to use with the following:

Code:
function Auth_Yadis_getSupportedExtensions()
{
    return array(
                 'dom' => array('classname' => 'Auth_Yadis_dom',
                       'libname' => array('dom.so', 'dom.dll')),
                 'domxml' => array('classname' => 'Auth_Yadis_domxml',
                       'libname' => array('domxml.so', 'php_domxml.dll')),
                 );
}

/**
 * Returns an instance of a Auth_Yadis_XMLParser subclass based on
 * the availability of PHP extensions for XML parsing.  If
 * Auth_Yadis_setDefaultParser has been called, the parser used in
 * that call will be returned instead.
 */
function &Auth_Yadis_getXMLParser()
{
    global $__Auth_Yadis_defaultParser;

    if (isset($__Auth_Yadis_defaultParser)) {
        return $__Auth_Yadis_defaultParser;
    }

    $p = null;
    $classname = null;

    $extensions = Auth_Yadis_getSupportedExtensions();

    // Return a wrapper for the resident implementation, if any.
    foreach ($extensions as $name => $params) {
        if (!extension_loaded($name)) {
            foreach ($params['libname'] as $libname) {
                if (@dl($libname)) {
                    $classname = $params['classname'];
                }
            }
        } else {
            $classname = $params['classname'];
        }
        if (isset($classname)) {
            $p = new $classname();
            return $p;
        }
    }

    if (!isset($p)) {
        trigger_error('No XML parser was found', E_USER_ERROR);
    } else {
        Auth_Yadis_setDefaultParser($p);
    }

    return $p;
}
There is a call to the PHP function dl() in function &Auth_Yadis_getXMLParser() shown above. The application dies right at the call to dl()--highlighted in blue in the above code block. Nothing shows up in the error log. The PHP configuration at FutureQuest has enable_dl set to OFF. I'm assuming this is the reason it dies. I tried using ini_set() to turn it ON without success.

I've also seen that dl() is not supported in all web servers and is deprecated in PHP 5.

Is there another method of determining the XML parser that should be used?

Thanks for your help.

-- Wayne

Last edited by oacis : 09-02-2008 at 12:53 AM.
oacis is offline   Reply With Quote
Old 09-02-2008, 07:14 AM   Postid: 169903
hobbes
Have you hugged a tiger today?
 
hobbes's Avatar

Forum Notability:
1238 pts: A True Crowd-pleaser!
[Post Feedback]
 
Join Date: Mar 2000
Location: Third Sol Planet Posts: Far too many. Oh ok -
Posts: 2,705
Re: JanRain OpenID library

Wayne - do you have the latest JR library? There was one released just a couple of months back for OpenID 2 which I thought was to be PHP5 compliant.
hobbes is offline   Reply With Quote
Old 09-02-2008, 09:44 AM   Postid: 169905
oacis
Site Owner

Forum Notability:
105 pts: Helpful Contributor
[Post Feedback]
 
Join Date: Jan 2004
Location: Los Angeles, CA USA
Posts: 25
Re: JanRain OpenID library

Quote:
Originally Posted by hobbes View Post
Wayne - do you have the latest JR library? There was one released just a couple of months back for OpenID 2 which I thought was to be PHP5 compliant.
I have version 2.1.1 released on 27 June 2008.
oacis is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 visitors)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 11:35 PM.


Running on vBulletin®
Copyright © 2000 - 2013, Jelsoft Enterprises Ltd.
Hosted & Administrated by FutureQuest, Inc.
Images & content copyright © 1998-2013 FutureQuest, Inc.
FutureQuest, Inc.