6.0.0-alpha14
7/2/25

[#6605] Undefined index: emulate_prepared ; undefined method MDB2::areequals()
Summary Undefined index: emulate_prepared ; undefined method MDB2::areequals()
Queue Ansel
Type Bug
State Not A Bug
Priority 1. Low
Owners
Requester jens (at) peino (dot) de
Created 04/14/2008 (6288 days ago)
Due
Updated 04/21/2008 (6281 days ago)
Assigned 04/14/2008 (6288 days ago)
Resolved 04/14/2008 (6288 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
04/21/2008 03:59:50 AM Chuck Hagenbuch Comment #12 Reply to this comment
Maya:ansel chuck$ grep -r MDB2.php .

./lib/Ansel.php:        require_once 'MDB2.php';


04/19/2008 05:33:43 PM jens (at) peino (dot) de Comment #11 Reply to this comment
http://pear.php.net/bugs/bug.php?id=13678&edit=2



I don't know the code as good as you do.
Okay. Please re-open if it comes back to our usage.
04/14/2008 03:41:00 PM Chuck Hagenbuch Comment #10
State ⇒ Not A Bug
Reply to this comment
Okay. Please re-open if it comes back to our usage.
04/14/2008 03:38:33 PM jens (at) peino (dot) de Comment #9 Reply to this comment
Again, why is mdb2 calling a function that doesn't exist (even if it
should) a Horde bug?
Got it, misunderstood that comment. (Stupid german ;-))

From this point of view, you're right. You can close this.
If the function is defined by mdb2, then are you using a PHP opcode
cache? Have you flushed the cache or tried disabling it?
I am indeed using APC. Did not try one of those actions, but now.

No change.






04/14/2008 03:29:13 PM Chuck Hagenbuch Comment #8 Reply to this comment
Again, why is mdb2 calling a function that doesn't exist (even if it 
should) a Horde bug?



If the function is defined by mdb2, then are you using a PHP opcode 
cache? Have you flushed the cache or tried disabling it?
04/14/2008 03:16:56 PM jens (at) peino (dot) de Comment #7 Reply to this comment
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



It exists. Its defined in /usr/share/php5/PEAR/MDB2.php

[Show Quoted Text - 9 lines]
04/14/2008 03:10:32 PM Chuck Hagenbuch Comment #6 Reply to this comment
Looks like a bug in the mysqli driver to me - can you try with mysql
instead?
Same result.
On the same line in the mysqli driver still?



Not sure what we're supposed to do about MDB2 calling a MDB2 function 
that doesn't exist, anyway...
04/14/2008 03:09:03 PM jens (at) peino (dot) de Comment #5 Reply to this comment
Looks like a bug in the mysqli driver to me - can you try with mysql
instead?
You also might want to make sure that you have the most recent
version of the mysqli driver for mdb2 installed as well.
I used 2.5.0.b1 for MDB2 and MDB2#mysql(i)

And also tried 2.4.1 (for both)




04/14/2008 03:07:24 PM jens (at) peino (dot) de Comment #4 Reply to this comment
Looks like a bug in the mysqli driver to me - can you try with mysql instead?
Same result.
04/14/2008 03:03:54 PM Michael Rubinsky Comment #3 Reply to this comment
Looks like a bug in the mysqli driver to me - can you try with mysql instead?
You also might want to make sure that you have the most recent version 
of the mysqli driver for mdb2 installed as well.
04/14/2008 02:58:45 PM Chuck Hagenbuch Comment #2
State ⇒ Feedback
Reply to this comment
Looks like a bug in the mysqli driver to me - can you try with mysql instead?
04/14/2008 01:54:53 PM jens (at) peino (dot) de Comment #1
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Queue ⇒ Ansel
Summary ⇒ Undefined index: emulate_prepared ; undefined method MDB2::areequals()
Type ⇒ Bug
Priority ⇒ 1. Low
Reply to this comment
Hello,



Using Horde/Ansel CVS HEAD.

PEAR MDB2 is 2.5.0b2, but error appears also in 2.4.1



When calling Ansel i get:



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


Saved Queries