6.0.0-git
2019-03-19

[#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 2008-04-14 (3991 days ago)
Due
Updated 2008-04-21 (3984 days ago)
Assigned 2008-04-14 (3991 days ago)
Resolved 2008-04-14 (3991 days ago)
Milestone
Patch No

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

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


2008-04-19 17:33:43 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.
2008-04-14 15:41:00 Chuck Hagenbuch Comment #10
State ⇒ Not A Bug
Reply to this comment
Okay. Please re-open if it comes back to our usage.
2008-04-14 15:38:33 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.






2008-04-14 15:29:13 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?
2008-04-14 15:16:56 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]
2008-04-14 15:10:32 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...
2008-04-14 15:09:03 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)




2008-04-14 15:07:24 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.
2008-04-14 15:03:54 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.
2008-04-14 14:58:45 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?
2008-04-14 13:54:53 jens (at) peino (dot) de Comment #1
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Summary ⇒ Undefined index: emulate_prepared ; undefined method MDB2::areequals()
Queue ⇒ Ansel
Milestone ⇒
Patch ⇒ No
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