Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.5.0b5

Bug #13678 Undefined index: emulate_prepared ; undefined method MDB2::areequals()
Submitted: 2008-04-14 15:41 UTC
From: jenst Assigned: quipo
Status: Closed Package: MDB2 (version 2.5.0b1)
PHP Version: 5.2.5 OS: openSuSE 11.0-factory
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 15 - 11 = ?

 
 [2008-04-14 15:41 UTC] jenst (Jens Tkotz)
Description: ------------ Hello, using Horde/Ansel HEAD and getting this: Notice: Undefined index: emulate_prepared in /usr/share/php5/PEAR/MDB2/Driver/mysql.php on line 1024 Fatal error: Call to undefined method MDB2::areequals() in /usr/share/php5/PEAR/MDB2/Driver/mysql.php on line 565 or Notice: Undefined index: emulate_prepared in /usr/share/php5/PEAR/MDB2/Driver/mysqli.php on line 1028 Fatal error: Call to undefined method MDB2::areequals() in /usr/share/php5/PEAR/MDB2/Driver/mysqli.php on line 556

Comments

 [2008-04-19 16:57 UTC] quipo (Lorenzo Alberton)
are you including 'MDB2.php' ?
 [2008-04-21 13:19 UTC] jenst (Jens Tkotz)
Yes, they are. Chuck Hagenbuch <chuck@horde.org> (2008-04-20 23:59) wrote: Maya:ansel chuck$ grep -r MDB2.php . ./lib/Ansel.php: require_once 'MDB2.php';
 [2008-05-03 12:36 UTC] quipo (Lorenzo Alberton)
I need a reproducing script, ideally without external dependencies.
 [2008-05-07 16:19 UTC] jenst (Jens Tkotz)
<?php $conf['sql']['username'] = 'root'; $conf['sql']['password'] = '<MYPW>'; $conf['sql']['hostspec'] = 'localhost'; $conf['sql']['port'] = 3306; $conf['sql']['protocol'] = 'tcp'; $conf['sql']['database'] = 'mysql'; $conf['sql']['splitread'] = false; $conf['sql']['phptype'] = 'mysqli'; class foo { /** */ function getDb() { require_once 'MDB2.php'; $config = $GLOBALS['conf']['sql']; $db = & MDB2::factory($config); return $db; } } $db = foo::getDb(); $rs = $db->queryAll('SELECT * db', null, MDB2_FETCHMODE_ASSOC); ?>
 [2008-05-31 12:47 UTC] quipo (Lorenzo Alberton)
Do you experience this bug with the CVS version of the packages?
 [2008-05-31 13:16 UTC] jenst (Jens Tkotz)
Hi, i guess you mean the MDB2 packages? No. The "official" packages. So i installed the CVS version of MDB2 and mysql(i) driver. Seems the error is gone.
 [2008-06-07 13:33 UTC] beldougie (Matt Keeble)
Hi, I have stumbled across this problem today while porting from DB to MDB2 - it appears that any data that includes a < or > character will cause the next index on FETCHMODE_ASSOC query to be missed. The data for the next column still appears but not the index itself while the data before the missing index is truncated at the offending character. This then appears to confuse the entire result array and not recognise all of the remaining indices. the data I have worked with DB without any problem at all btw... Hope this helps. I too will try using the latest cvs version to fix the problem, but hope this makes it into an official build soon.
 [2008-06-07 14:04 UTC] beldougie (Matt Keeble)
Sorry - ignore my last post - it appears I misread the bug. Sorry - I have very similar 'undefined index' problems but they appear to be unrelated to the actual problem described here.
 [2008-06-13 15:20 UTC] quipo (Lorenzo Alberton)
Good, I'm closing this report, then. @Matt: if you found a bug (and maybe have a reproducing script), please open another bug report, thanks.