6.0.0-beta1
7/5/25

[#7854] Error in DIMP's _getIdxString()-function
Summary Error in DIMP's _getIdxString()-function
Queue DIMP
Queue Version 1.1.1
Type Bug
State No Feedback
Priority 2. Medium
Owners
Requester thomas (at) gelf (dot) net
Created 01/15/2009 (6015 days ago)
Due
Updated 12/22/2010 (5309 days ago)
Assigned 01/15/2009 (6015 days ago)
Resolved 01/24/2009 (6006 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
01/24/2009 04:09:11 PM Chuck Hagenbuch State ⇒ No Feedback
 
01/16/2009 09:15:46 PM thomas (at) gelf (dot) net Comment #6 Reply to this comment
I don't know that - and I'll not have enough time to track this down
before monday. But who cares, just have a look at the posted code
and tell me the value of $key - the error is to be found there!
Except that is *is* there for the rest of us. That's why you have to
help us reproduce the problem by supplying the actual value, to help
us figure out what's going on.
Sorry, I misread the function - I really need some sleep. I'll do some

tests on monday and let you know!


01/16/2009 06:35:39 PM Chuck Hagenbuch Comment #5 Reply to this comment
I don't know that - and I'll not have enough time to track this down
before monday. But who cares, just have a look at the posted code
and tell me the value of $key - the error is to be found there!
Except that is *is* there for the rest of us. That's why you have to 
help us reproduce the problem by supplying the actual value, to help 
us figure out what's going on.
01/16/2009 08:54:36 AM thomas (at) gelf (dot) net Comment #4 Reply to this comment
function _getIdxString($indices) {
     $i = each($indices);
     return reset($i['value']) . IMP_IDX_SEP . $i['key'];
So what is the value of $indices?
I don't know that - and I'll not have enough time to track this down

before monday. But who cares, just have a look at the posted code

and tell me the value of $key - the error is to be found there!


01/15/2009 07:05:14 PM Michael Slusarz Comment #3
State ⇒ Feedback
Reply to this comment

[Show Quoted Text - 15 lines]
So what is the value of $indices?
01/15/2009 03:37:37 PM thomas (at) gelf (dot) net Comment #2 Reply to this comment
This then leads to...
PHP Fatal error:  Call to undefined method PEAR_Error::getHeaderOb()
in imp/lib/Compose.php
...in the forwardMessage function, it doesn't expect $imp_contents to be

a PEAR_Error.
01/15/2009 03:32:09 PM thomas (at) gelf (dot) net Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Error in DIMP's _getIdxString()-function
Queue ⇒ DIMP
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
As I'm in a hurry right now I wasn't able to immediately figure

out what this function is used for:
function _getIdxString($indices)
{
     $i = each($indices);
     return reset($i['value']) . IMP_IDX_SEP . $i['key'];
}
However if you look my log line and then at the code, the error

is obvious - there is no $key:
PHP Warning:  reset(): Passed variable is not an array or object
in dimp/imp.php on line 112
PHP Notice:  Undefined index:  key in dimp/imp.php on line 112
Best regards,

Thomas Gelf


Saved Queries