6.0.0-git
2019-05-19

[#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 2009-01-15 (3776 days ago)
Due
Updated 2010-12-22 (3070 days ago)
Assigned 2009-01-15 (3776 days ago)
Resolved 2009-01-24 (3767 days ago)
Milestone
Patch No

History
2009-01-24 16:09:11 Chuck Hagenbuch State ⇒ No Feedback
 
2009-01-16 21:15:46 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!


2009-01-16 18:35:39 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.
2009-01-16 08:54:36 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!


2009-01-15 19:05:14 Michael Slusarz Comment #3
State ⇒ Feedback
Reply to this comment

[Show Quoted Text - 15 lines]
So what is the value of $indices?
2009-01-15 15:37:37 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.
2009-01-15 15:32:09 thomas (at) gelf (dot) net Comment #1
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Summary ⇒ Error in DIMP's _getIdxString()-function
Queue ⇒ DIMP
Milestone ⇒
Patch ⇒ No
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