| Topic: | Module development .8 adodb question |
|---|---|
|
oregano
Freshman
Posts: 45 Posted: |
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 - |
|
markwest
Moderator
Posts: 7720 Posted: |
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 |
|
oregano
Freshman
Posts: 45 Posted: |
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: CodeADOdb (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 />'; } ?> |
|
Simon
online Steering Committee
Posts: 13427 Posted: |
php.netNote: 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 |