Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Module development .8 adodb question
  • Posted: 13.04.2007, 19:23
     
    oregano
    rank:
    Freshman Freshman
    registered:
     September 2002
    Status:
    offline
    last visit:
    13.04.07
    Posts:
    45
    Hello -

    So I'm working on a module for .8, and I noticed in my Admin->Security->System Info that the "red light" is on for the adodb extension. However, when I do an info.php on my system, it shows that it's on and working.

    My question is this: Is there something I should know about why this is showing it's not working? Will adodb calls work correctly?

    I know .8 isn't for production release, but I'm not sure yet why that security check is showing adodb isn't working.

    Thanks -
  • Posted: 13.04.2007, 19:42
     
    rank:
    Moderator Moderator
    registered:
     March 2002
    Status:
    offline
    last visit:
    26.08.08
    Posts:
    7720
    This refers to an additional PHP extension that speeds up adodb calls not the adodb library itself. On most systems this is expected as you specifically have to downlaod and install this PHP extension.

    Assuming you know all of this it's odd. The code makes a PHP extension_loaded check to see if the extension is loaded (using the extension name 'adodb'). Could you write a very simple script to call get_loaded_extensions and see what's listed?

    Thanks.

    -Mark
  • Posted: 13.04.2007, 22:12
     
    oregano
    rank:
    Freshman Freshman
    registered:
     September 2002
    Status:
    offline
    last visit:
    13.04.07
    Posts:
    45
    Mark -

    Thanks. I knew it was an extension, and I attempted to install it, which as far as I know completed successfully.

    My extensions script returned a LOT of info, and the adodb line looked like this:

    Code

    ADOdb (adodb_movenext, adodb_getall)


    I'm still not sure if this means the correct adodb extension is installed or not.

    I can provide the link to my extensions script if needed.

    Thanks!

    ----

    my extensions script:

    Code

    <?php
        $extensions = get_loaded_extensions();

        foreach($extensions as $extension) {
            echo $extension;
            echo ' (', implode(', ', get_extension_funcs($extension)), ')<BR />';  
        }
    ?>

  • Posted: 14.04.2007, 06:01
     
    Simon
    rank:
    Steering Committee Steering Committee
    registered:
     December 2002
    Status:
    offline
    last visit:
    09.11.08
    Posts:
    13413

    php.net

    Note: extension_loaded() uses the internal extension name to test whether a certain extension is available or not. Most internal extension names are written in lower case but there may be extension available which also use uppercase letters. Be warned that this function compares case sensitive !


    Perhaps we need to check for ADOdb rather than adodb?

    --
    Regards,
    Simon

    itbegins.co.uk - Zikula Consulting

    Please read the Support Guide

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula