Mantis - Quercus
Viewing Issue Advanced Details
2547 major always 03-23-08 19:55 05-27-08 21:30
dobes_vandermeer  
ferg  
normal  
closed 3.1.5  
fixed  
none    
none 3.2.0  
0002547: Doesn't work with adodb_lite
Im trying to run CMS Made Simple on Quercus with Glassfish but I'm running
into a snag ... this class from adbodb_lite called pear_ADOConnection can't be instantiated and I don't understand why.

Here's an online version the file that's being included:

http://www.zhyh.org/comm/adodb_lite/adodbSQL_drivers/odbc/pear_module.inc [^]

If I insert a line:

$test = new pear_ADOConnection();

at the end of the file, I get:

/C:/work/habitsoft/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/cmsmsApp/lib/adodb_lite/generic_modules/pear_module.inc:193:
Fatal Error: 'pear_ADOConnection' is an unknown class name.

Which is a bit weird since that class is defined just above, in the same
file!

Here's an outline of the file for anyone who doesn't want to view the link:

<?php
// Generic Pear Module
// This module contains alternative Pear commands.
// $last_module is set to the name of a DB implementation module before
this is included.
eval('class pear_EXTENDER extends ' . $last_module . '_ADOConnection { }');

class pear_ADOConnection extends pear_EXTENDER
{

...

}

eval('class pear_resultset_EXTENDER extends ' . $last_module . '_ResultSet
{ }');

class pear_ResultSet extends pear_resultset_EXTENDER
{

...

}

$test = new pear_ResultSet(); // Unknown class name ...
$test = new pear_ADOConnection(); // Unknown class name ...
?>


Any ideas where I can look next?

Thanks!

Notes
(0003099)
ferg   
05-27-08 21:30   
php/1d1p