Summary | PHP Error to view emails IMP (Interger overflow) |
Queue | IMP |
Queue Version | 6.1.6 |
Type | Bug |
State | Not A Bug |
Priority | 1. Low |
Owners | slusarz (at) horde (dot) org |
Requester | asier.cidon (at) externo (dot) uam (dot) es |
Created | 03/21/2014 (4160 days ago) |
Due | |
Updated | 04/01/2014 (4149 days ago) |
Assigned | 03/24/2014 (4157 days ago) |
Resolved | 04/01/2014 (4149 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Not A Bug
In this FETCH response:
* 1 FETCH (UID 13 FLAGS (\Seen $forwarded) RFC822.SIZE 434935 ENVELOPE
("Tue, 11 Mar 2014 20:13:26 +0000" "SV3 PK/PD EASL poster: pre-layout
version" (("BI HCV Pubs" NIL "bihcvpubs" "choicehs.com")) (("BI HCV
Pubs" NIL "bihcvpubs" "choicehs.com")) (("BI HCV Pubs" NIL "bihcvpubs"
"choicehs.com")) (("ASSELAH Tarik" NIL "tarik.asselah"
"bjn.aphp.fr")({184467440737 NIL "Dr.Elmar-Zehnter-Dortmund"
"t-online.de")("Agarwal, Kaushik" NIL "kosh.agarwal"
"kcl.ac.uk")("????" NIL "sakai429" "hyo-med.ac.jp")("Hiroshi
Yatsuhashi" NIL "yatsuhashi"
"nmc.hosp.go.jp")("bernard.willems@umontreal.ca" NIL "bernard.willems"
"umontreal.ca")("Wright, David" NIL "DWright"
"seton.org")("calinas.hospital@gmail.com" NIL "calinas.hospital"
"gmail.com")("joseluis.calleja@dom.es" NIL "joseluis.calleja"
"dom.es")("NEGRO Francesco" NIL "Francesco.Negro"
"hcuge.ch")("anne-marie.quinson@boehringer-ingelheim.com" NIL
"anne-marie.quinson"
"boehringer-ingelheim.com")("nanshi.sha@boehringer-ingelheim.com" NIL
"nanshi.sha"
"boehringer-ingelheim.com")("nicolas.dorleacq@boehringer-ingelheim.com" NIL
"nicolas.dorleacq"
"boehringer-ingelheim.com")("mike.schobelock@boehringer-ingelheim.com"
NIL "mike.schobelock" "boehringer-ingelheim.com")("Ira M. Jacobson"
NIL "imj2001" "med.cornell.edu")) (("BI HCV Pubs" NIL "bihcvpubs"
"choicehs.com")("james.emmerson@boehringer-ingelheim.com" NIL
"james.emmerson"
"boehringer-ingelheim.com")("jerry.stern@boehringer-ingelheim.com" NIL
"jerry.stern" "boehringer-ingelheim.com")) NIL NIL
"<A839FF5570AA3B4794A27523E57B2961C850140298@western06.westernoriental.local>") BODY[HEADER.FIELDS (IMPORTANCE LIST-POST X-PRIORITY)]
{2}
Appears this:
({184467440737 NIL "Dr. [...]
Numbers within {} in IMAP indicate the length of literal string data.
Brackets can NEVER appear ever in non-literal data, since they have
only one meaning ... once the parser/tokenizer sees an opening
bracket, it must take the value within the bracket as the length of
literal data to read.
Here, not only is there a giant number defined, but the bracket is
left open for hundreds of characters so PHP is converting this whole
string to an integer. I'm guessing that's why 2^63-1 is chosen ...
that's likely the largest internal
integer value PHP supports. (Suspiciously like a 64-bit C signed integer.)
There's just no practical way of recovering from this data. And I
really see no reason to do sanity checking for this beyond rare
occurrence - hitting the PHP memory limit is sufficient sanity
checking for me.
You need to report this issue to the upstream IMAP server provider for
them to fix.
New Attachment: errores_imap_h5.txt
Perfect, but while I wait your response this method is the only solutions.
Regards!
Assigned to Michael Slusarz
nothing to do with the ternary operator.
Your debugging indicates that it is your IMAP server that is providing
this length value. We need an IMAP debug log to analyze this further.
To further debug this issue, we need details of the IMP -> IMAP/POP
communication.
To enable debugging, see instructions contained in
imp/config/backends.php (the 'debug' config parameter).
Debugging should not be enabled on a production server, Attach/post
only the portion of the log that directly deals with the problem
reported (it may be simplest to clear the log file and then perform
the event that causes the error).
Stream.php file.
$read = fread($this->stream, $to_end ? 16384 : $length); --->
$read = fread($this->stream, true);
ENTIRE stream. That is not what it is needed, since the whole point
of the function is only to read a *portion* of the stream.
Not to mention true is not a valid second argument to fread() -- it
must be an integer.
The problem has been temporarily solved by changing the line 402 of
Stream.php file.
$read = fread($this->stream, $to_end ? 16384 : $length); ---> $read
= fread($this->stream, true);
It's possible that the issue is with "Ternary Operator". The php
official page has a comment on changes in the use of these operators
for the version 5.3
(http://www.php.net/manual/en/language.operators.comparison.php#language.operators.comparison.ternary).
Regards.
2014-03-26T09:13:02+01:00 DEBUG: Backtrace:
1. IMP_Basic_Base->__construct() /var/www/html/horde/imp/basic.php:34
2. IMP_Basic_Mailbox->_init() /var/www/html/horde/imp/lib/Basic/Base.php:69
3. IMP_Imap->openMailbox() /var/www/html/horde/imp/lib/Basic/Mailbox.php:67
4. IMP_Imap->__call() /var/www/html/horde/imp/lib/Basic/Mailbox.php:67
5. call_user_func_array() /var/www/html/horde/imp/lib/Imap.php:568
6. Horde_Imap_Client_Base->openMailbox()
7. Horde_Imap_Client_Base->login()
/usr/share/pear/Horde/Imap/Client/Base.php:937
8. Horde_Imap_Client_Socket->_login()
/usr/share/pear/Horde/Imap/Client/Base.php:744
9. Horde_Imap_Client_Socket->_tryLogin()
/usr/share/pear/Horde/Imap/Client/Socket.php:468
10. Horde_Imap_Client_Socket->_sendCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:744
11. Horde_Imap_Client_Socket->_sendCmdChunk()
/usr/share/pear/Horde/Imap/Client/Socket.php:3857
12. Horde_Imap_Client_Socket->_processCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:3913
13. Horde_Imap_Client_Data_Format_String->escape()
/usr/share/pear/Horde/Imap/Client/Socket.php:4038
14. Horde_Stream->getString()
/usr/share/pear/Horde/Imap/Client/Data/Format/String.php:96
15. Horde_Stream->substring() /usr/share/pear/Horde/Stream.php:348
16. Horde::debug() /usr/share/pear/Horde/Stream.php:370
2014-03-26T09:13:02+01:00 DEBUG: Backtrace:
1. IMP_Basic_Base->__construct() /var/www/html/horde/imp/basic.php:34
2. IMP_Basic_Mailbox->_init() /var/www/html/horde/imp/lib/Basic/Base.php:69
3. IMP_Imap->openMailbox() /var/www/html/horde/imp/lib/Basic/Mailbox.php:67
4. IMP_Imap->__call() /var/www/html/horde/imp/lib/Basic/Mailbox.php:67
5. call_user_func_array() /var/www/html/horde/imp/lib/Imap.php:568
6. Horde_Imap_Client_Base->openMailbox()
7. Horde_Imap_Client_Base->login()
/usr/share/pear/Horde/Imap/Client/Base.php:937
8. Horde_Imap_Client_Socket->_login()
/usr/share/pear/Horde/Imap/Client/Base.php:744
9. Horde_Imap_Client_Socket->_tryLogin()
/usr/share/pear/Horde/Imap/Client/Socket.php:468
10. Horde_Imap_Client_Socket->_sendCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:744
11. Horde_Imap_Client_Socket->_sendCmdChunk()
/usr/share/pear/Horde/Imap/Client/Socket.php:3857
12. Horde_Imap_Client_Socket->_processCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:3913
13. Horde_Imap_Client_Data_Format_String->escape()
/usr/share/pear/Horde/Imap/Client/Socket.php:4038
14. Horde_Stream->getString()
/usr/share/pear/Horde/Imap/Client/Data/Format/String.php:96
15. Horde_Stream->substring() /usr/share/pear/Horde/Stream.php:348
16. Horde::debug() /usr/share/pear/Horde/Stream.php:404
2014-03-26T09:13:02+01:00 DEBUG: Backtrace:
1. IMP_Basic_Base->__construct() /var/www/html/horde/imp/basic.php:34
2. IMP_Basic_Mailbox->_init() /var/www/html/horde/imp/lib/Basic/Base.php:69
3. IMP_Imap->openMailbox() /var/www/html/horde/imp/lib/Basic/Mailbox.php:67
4. IMP_Imap->__call() /var/www/html/horde/imp/lib/Basic/Mailbox.php:67
5. call_user_func_array() /var/www/html/horde/imp/lib/Imap.php:568
6. Horde_Imap_Client_Base->openMailbox()
7. Horde_Imap_Client_Base->login()
/usr/share/pear/Horde/Imap/Client/Base.php:937
8. Horde_Imap_Client_Socket->_login()
/usr/share/pear/Horde/Imap/Client/Base.php:744
9. Horde_Imap_Client_Socket->_tryLogin()
/usr/share/pear/Horde/Imap/Client/Socket.php:468
10. Horde_Imap_Client_Socket->_sendCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:744
11. Horde_Imap_Client_Socket->_sendCmdChunk()
/usr/share/pear/Horde/Imap/Client/Socket.php:3857
12. Horde_Imap_Client_Socket->_processCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:3913
13. Horde_Imap_Client_Data_Format_String->escape()
/usr/share/pear/Horde/Imap/Client/Socket.php:4038
14. Horde_Stream->getString()
/usr/share/pear/Horde/Imap/Client/Data/Format/String.php:96
15. Horde_Stream->substring() /usr/share/pear/Horde/Stream.php:348
16. Horde::debug() /usr/share/pear/Horde/Stream.php:370
2014-03-26T09:13:02+01:00 DEBUG: Backtrace:
1. IMP_Basic_Base->__construct() /var/www/html/horde/imp/basic.php:34
2. IMP_Basic_Mailbox->_init() /var/www/html/horde/imp/lib/Basic/Base.php:69
3. IMP_Imap->openMailbox() /var/www/html/horde/imp/lib/Basic/Mailbox.php:67
4. IMP_Imap->__call() /var/www/html/horde/imp/lib/Basic/Mailbox.php:67
5. call_user_func_array() /var/www/html/horde/imp/lib/Imap.php:568
6. Horde_Imap_Client_Base->openMailbox()
7. Horde_Imap_Client_Base->login()
/usr/share/pear/Horde/Imap/Client/Base.php:937
8. Horde_Imap_Client_Socket->_login()
/usr/share/pear/Horde/Imap/Client/Base.php:744
9. Horde_Imap_Client_Socket->_tryLogin()
/usr/share/pear/Horde/Imap/Client/Socket.php:468
10. Horde_Imap_Client_Socket->_sendCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:744
11. Horde_Imap_Client_Socket->_sendCmdChunk()
/usr/share/pear/Horde/Imap/Client/Socket.php:3857
12. Horde_Imap_Client_Socket->_processCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:3913
13. Horde_Imap_Client_Data_Format_String->escape()
/usr/share/pear/Horde/Imap/Client/Socket.php:4038
14. Horde_Stream->getString()
/usr/share/pear/Horde/Imap/Client/Data/Format/String.php:96
15. Horde_Stream->substring() /usr/share/pear/Horde/Stream.php:348
16. Horde::debug() /usr/share/pear/Horde/Stream.php:404
2014-03-26T09:13:02+01:00 DEBUG: Backtrace:
1. IMP_Basic_Base->__construct() /var/www/html/horde/imp/basic.php:34
2. IMP_Basic_Mailbox->_init() /var/www/html/horde/imp/lib/Basic/Base.php:69
3. IMP_Imap->openMailbox() /var/www/html/horde/imp/lib/Basic/Mailbox.php:67
4. IMP_Imap->__call() /var/www/html/horde/imp/lib/Basic/Mailbox.php:67
5. call_user_func_array() /var/www/html/horde/imp/lib/Imap.php:568
6. Horde_Imap_Client_Base->openMailbox()
7. Horde_Imap_Client_Socket->_openMailbox()
/usr/share/pear/Horde/Imap/Client/Base.php:955
8. Horde_Imap_Client_Socket->_sendCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:1055
9. Horde_Imap_Client_Socket->_sendCmdChunk()
/usr/share/pear/Horde/Imap/Client/Socket.php:3857
10. Horde_Imap_Client_Socket->_processCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:3913
11. Horde_Imap_Client_Data_Format_String->escape()
/usr/share/pear/Horde/Imap/Client/Socket.php:4038
12. Horde_Stream->getString()
/usr/share/pear/Horde/Imap/Client/Data/Format/String.php:96
13. Horde_Stream->substring() /usr/share/pear/Horde/Stream.php:348
14. Horde::debug() /usr/share/pear/Horde/Stream.php:370
2014-03-26T09:13:02+01:00 DEBUG: Backtrace:
1. IMP_Basic_Base->__construct() /var/www/html/horde/imp/basic.php:34
2. IMP_Basic_Mailbox->_init() /var/www/html/horde/imp/lib/Basic/Base.php:69
3. IMP_Imap->openMailbox() /var/www/html/horde/imp/lib/Basic/Mailbox.php:67
4. IMP_Imap->__call() /var/www/html/horde/imp/lib/Basic/Mailbox.php:67
5. call_user_func_array() /var/www/html/horde/imp/lib/Imap.php:568
6. Horde_Imap_Client_Base->openMailbox()
7. Horde_Imap_Client_Socket->_openMailbox()
/usr/share/pear/Horde/Imap/Client/Base.php:955
8. Horde_Imap_Client_Socket->_sendCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:1055
9. Horde_Imap_Client_Socket->_sendCmdChunk()
/usr/share/pear/Horde/Imap/Client/Socket.php:3857
10. Horde_Imap_Client_Socket->_processCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:3913
11. Horde_Imap_Client_Data_Format_String->escape()
/usr/share/pear/Horde/Imap/Client/Socket.php:4038
12. Horde_Stream->getString()
/usr/share/pear/Horde/Imap/Client/Data/Format/String.php:96
13. Horde_Stream->substring() /usr/share/pear/Horde/Stream.php:348
14. Horde::debug() /usr/share/pear/Horde/Stream.php:404
2014-03-26T09:13:02+01:00 DEBUG: Variable information:
int(2000)
Backtrace:
1. IMP_Basic_Base->__construct() /var/www/html/horde/imp/basic.php:34
2. IMP_Basic_Mailbox->_init() /var/www/html/horde/imp/lib/Basic/Base.php:69
3. IMP_Mailbox_List->getMailboxArray()
/var/www/html/horde/imp/lib/Basic/Mailbox.php:258
4. IMP_Imap->fetch() /var/www/html/horde/imp/lib/Mailbox/List.php:190
5. IMP_Imap->__call() /var/www/html/horde/imp/lib/Mailbox/List.php:190
6. call_user_func_array() /var/www/html/horde/imp/lib/Imap.php:568
7. Horde_Imap_Client_Base->fetch()
8. Horde_Imap_Client_Base->_fetchWrapper()
/usr/share/pear/Horde/Imap/Client/Base.php:2375
9. Horde_Imap_Client_Socket->_fetch()
/usr/share/pear/Horde/Imap/Client/Base.php:2613
10. Horde_Imap_Client_Socket->_fetchCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:2558
11. Horde_Imap_Client_Ids->split()
/usr/share/pear/Horde/Imap/Client/Socket.php:2786
12. Horde_Stream->substring() /usr/share/pear/Horde/Imap/Client/Ids.php:242
13. Horde::debug() /usr/share/pear/Horde/Stream.php:370
2014-03-26T09:13:02+01:00 DEBUG: Variable information:
int(2000)
Backtrace:
1. IMP_Basic_Base->__construct() /var/www/html/horde/imp/basic.php:34
2. IMP_Basic_Mailbox->_init() /var/www/html/horde/imp/lib/Basic/Base.php:69
3. IMP_Mailbox_List->getMailboxArray()
/var/www/html/horde/imp/lib/Basic/Mailbox.php:258
4. IMP_Imap->fetch() /var/www/html/horde/imp/lib/Mailbox/List.php:190
5. IMP_Imap->__call() /var/www/html/horde/imp/lib/Mailbox/List.php:190
6. call_user_func_array() /var/www/html/horde/imp/lib/Imap.php:568
7. Horde_Imap_Client_Base->fetch()
8. Horde_Imap_Client_Base->_fetchWrapper()
/usr/share/pear/Horde/Imap/Client/Base.php:2375
9. Horde_Imap_Client_Socket->_fetch()
/usr/share/pear/Horde/Imap/Client/Base.php:2613
10. Horde_Imap_Client_Socket->_fetchCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:2558
11. Horde_Imap_Client_Ids->split()
/usr/share/pear/Horde/Imap/Client/Socket.php:2786
12. Horde_Stream->substring() /usr/share/pear/Horde/Imap/Client/Ids.php:242
13. Horde::debug() /usr/share/pear/Horde/Stream.php:404
2014-03-26T09:13:02+01:00 DEBUG: Backtrace:
1. IMP_Basic_Base->__construct() /var/www/html/horde/imp/basic.php:34
2. IMP_Basic_Mailbox->_init() /var/www/html/horde/imp/lib/Basic/Base.php:69
3. IMP_Mailbox_List->getMailboxArray()
/var/www/html/horde/imp/lib/Basic/Mailbox.php:258
4. IMP_Imap->fetch() /var/www/html/horde/imp/lib/Mailbox/List.php:190
5. IMP_Imap->__call() /var/www/html/horde/imp/lib/Mailbox/List.php:190
6. call_user_func_array() /var/www/html/horde/imp/lib/Imap.php:568
7. Horde_Imap_Client_Base->fetch()
8. Horde_Imap_Client_Base->_fetchWrapper()
/usr/share/pear/Horde/Imap/Client/Base.php:2375
9. Horde_Imap_Client_Socket->_fetch()
/usr/share/pear/Horde/Imap/Client/Base.php:2613
10. Horde_Imap_Client_Socket->_sendCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:2563
11. Horde_Imap_Client_Socket->_sendCmdChunk()
/usr/share/pear/Horde/Imap/Client/Socket.php:3857
12. Horde_Imap_Client_Socket->_getLine()
/usr/share/pear/Horde/Imap/Client/Socket.php:3935
13. Horde_Imap_Client_Socket_Connection_Socket->read()
/usr/share/pear/Horde/Imap/Client/Socket.php:4139
14. Horde_Imap_Client_Tokenize->getLiteralLength()
/usr/share/pear/Horde/Imap/Client/Socket/Connection/Socket.php:146
15. Horde_Stream->getString()
/usr/share/pear/Horde/Imap/Client/Tokenize.php:168
16. Horde_Stream->substring() /usr/share/pear/Horde/Stream.php:348
17. Horde::debug() /usr/share/pear/Horde/Stream.php:370
2014-03-26T09:13:02+01:00 DEBUG: Backtrace:
1. IMP_Basic_Base->__construct() /var/www/html/horde/imp/basic.php:34
2. IMP_Basic_Mailbox->_init() /var/www/html/horde/imp/lib/Basic/Base.php:69
3. IMP_Mailbox_List->getMailboxArray()
/var/www/html/horde/imp/lib/Basic/Mailbox.php:258
4. IMP_Imap->fetch() /var/www/html/horde/imp/lib/Mailbox/List.php:190
5. IMP_Imap->__call() /var/www/html/horde/imp/lib/Mailbox/List.php:190
6. call_user_func_array() /var/www/html/horde/imp/lib/Imap.php:568
7. Horde_Imap_Client_Base->fetch()
8. Horde_Imap_Client_Base->_fetchWrapper()
/usr/share/pear/Horde/Imap/Client/Base.php:2375
9. Horde_Imap_Client_Socket->_fetch()
/usr/share/pear/Horde/Imap/Client/Base.php:2613
10. Horde_Imap_Client_Socket->_sendCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:2563
11. Horde_Imap_Client_Socket->_sendCmdChunk()
/usr/share/pear/Horde/Imap/Client/Socket.php:3857
12. Horde_Imap_Client_Socket->_getLine()
/usr/share/pear/Horde/Imap/Client/Socket.php:3935
13. Horde_Imap_Client_Socket_Connection_Socket->read()
/usr/share/pear/Horde/Imap/Client/Socket.php:4139
14. Horde_Imap_Client_Tokenize->getLiteralLength()
/usr/share/pear/Horde/Imap/Client/Socket/Connection/Socket.php:146
15. Horde_Stream->getString()
/usr/share/pear/Horde/Imap/Client/Tokenize.php:168
16. Horde_Stream->substring() /usr/share/pear/Horde/Stream.php:348
17. Horde::debug() /usr/share/pear/Horde/Stream.php:404
2014-03-26T09:13:02+01:00 DEBUG: Variable information:
int(9223372036854775807)
Backtrace:
1. IMP_Basic_Base->__construct() /var/www/html/horde/imp/basic.php:34
2. IMP_Basic_Mailbox->_init() /var/www/html/horde/imp/lib/Basic/Base.php:69
3. IMP_Mailbox_List->getMailboxArray()
/var/www/html/horde/imp/lib/Basic/Mailbox.php:258
4. IMP_Imap->fetch() /var/www/html/horde/imp/lib/Mailbox/List.php:190
5. IMP_Imap->__call() /var/www/html/horde/imp/lib/Mailbox/List.php:190
6. call_user_func_array() /var/www/html/horde/imp/lib/Imap.php:568
7. Horde_Imap_Client_Base->fetch()
8. Horde_Imap_Client_Base->_fetchWrapper()
/usr/share/pear/Horde/Imap/Client/Base.php:2375
9. Horde_Imap_Client_Socket->_fetch()
/usr/share/pear/Horde/Imap/Client/Base.php:2613
10. Horde_Imap_Client_Socket->_sendCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:2563
11. Horde_Imap_Client_Socket->_sendCmdChunk()
/usr/share/pear/Horde/Imap/Client/Socket.php:3857
12. Horde_Imap_Client_Socket->_getLine()
/usr/share/pear/Horde/Imap/Client/Socket.php:3935
13. Horde_Imap_Client_Socket->_serverResponse()
/usr/share/pear/Horde/Imap/Client/Socket.php:4161
14. Horde_Imap_Client_Socket->_parseFetch()
/usr/share/pear/Horde/Imap/Client/Socket.php:4356
15. Horde_Imap_Client_Socket->_parseEnvelope()
/usr/share/pear/Horde/Imap/Client/Socket.php:2853
16. Horde_Imap_Client_Tokenize->flushIterator()
/usr/share/pear/Horde/Imap/Client/Socket.php:3174
17. Horde_Imap_Client_Tokenize->next()
/usr/share/pear/Horde/Imap/Client/Tokenize.php:138
18. Horde_Stream->substring()
/usr/share/pear/Horde/Imap/Client/Tokenize.php:262
19. Horde::debug() /usr/share/pear/Horde/Stream.php:370
2014-03-26T09:13:02+01:00 DEBUG: Variable information:
int(9223372036854775807)
Backtrace:
1. IMP_Basic_Base->__construct() /var/www/html/horde/imp/basic.php:34
2. IMP_Basic_Mailbox->_init() /var/www/html/horde/imp/lib/Basic/Base.php:69
3. IMP_Mailbox_List->getMailboxArray()
/var/www/html/horde/imp/lib/Basic/Mailbox.php:258
4. IMP_Imap->fetch() /var/www/html/horde/imp/lib/Mailbox/List.php:190
5. IMP_Imap->__call() /var/www/html/horde/imp/lib/Mailbox/List.php:190
6. call_user_func_array() /var/www/html/horde/imp/lib/Imap.php:568
7. Horde_Imap_Client_Base->fetch()
8. Horde_Imap_Client_Base->_fetchWrapper()
/usr/share/pear/Horde/Imap/Client/Base.php:2375
9. Horde_Imap_Client_Socket->_fetch()
/usr/share/pear/Horde/Imap/Client/Base.php:2613
10. Horde_Imap_Client_Socket->_sendCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:2563
11. Horde_Imap_Client_Socket->_sendCmdChunk()
/usr/share/pear/Horde/Imap/Client/Socket.php:3857
12. Horde_Imap_Client_Socket->_getLine()
/usr/share/pear/Horde/Imap/Client/Socket.php:3935
13. Horde_Imap_Client_Socket->_serverResponse()
/usr/share/pear/Horde/Imap/Client/Socket.php:4161
14. Horde_Imap_Client_Socket->_parseFetch()
/usr/share/pear/Horde/Imap/Client/Socket.php:4356
15. Horde_Imap_Client_Socket->_parseEnvelope()
/usr/share/pear/Horde/Imap/Client/Socket.php:2853
16. Horde_Imap_Client_Tokenize->flushIterator()
/usr/share/pear/Horde/Imap/Client/Socket.php:3174
17. Horde_Imap_Client_Tokenize->next()
/usr/share/pear/Horde/Imap/Client/Tokenize.php:138
18. Horde_Stream->substring()
/usr/share/pear/Horde/Imap/Client/Tokenize.php:262
19. Horde::debug() /usr/share/pear/Horde/Stream.php:404
2014-03-26T09:13:02+01:00 DEBUG: Backtrace:
1. Horde_Imap_Client_Base->shutdown()
2. Horde_Imap_Client_Base->logout()
/usr/share/pear/Horde/Imap/Client/Base.php:294
3. Horde_Imap_Client_Socket->_logout()
/usr/share/pear/Horde/Imap/Client/Base.php:780
4. Horde_Imap_Client_Socket->_sendCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:813
5. Horde_Imap_Client_Socket->_sendCmdChunk()
/usr/share/pear/Horde/Imap/Client/Socket.php:3857
6. Horde_Imap_Client_Socket->_getLine()
/usr/share/pear/Horde/Imap/Client/Socket.php:3935
7. Horde_Imap_Client_Socket_Connection_Socket->read()
/usr/share/pear/Horde/Imap/Client/Socket.php:4139
8. Horde_Imap_Client_Tokenize->getLiteralLength()
/usr/share/pear/Horde/Imap/Client/Socket/Connection/Socket.php:146
9. Horde_Stream->getString()
/usr/share/pear/Horde/Imap/Client/Tokenize.php:168
10. Horde_Stream->substring() /usr/share/pear/Horde/Stream.php:348
11. Horde::debug() /usr/share/pear/Horde/Stream.php:370
2014-03-26T09:13:02+01:00 DEBUG: Backtrace:
1. Horde_Imap_Client_Base->shutdown()
2. Horde_Imap_Client_Base->logout()
/usr/share/pear/Horde/Imap/Client/Base.php:294
3. Horde_Imap_Client_Socket->_logout()
/usr/share/pear/Horde/Imap/Client/Base.php:780
4. Horde_Imap_Client_Socket->_sendCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:813
5. Horde_Imap_Client_Socket->_sendCmdChunk()
/usr/share/pear/Horde/Imap/Client/Socket.php:3857
6. Horde_Imap_Client_Socket->_getLine()
/usr/share/pear/Horde/Imap/Client/Socket.php:3935
7. Horde_Imap_Client_Socket_Connection_Socket->read()
/usr/share/pear/Horde/Imap/Client/Socket.php:4139
8. Horde_Imap_Client_Tokenize->getLiteralLength()
/usr/share/pear/Horde/Imap/Client/Socket/Connection/Socket.php:146
9. Horde_Stream->getString()
/usr/share/pear/Horde/Imap/Client/Tokenize.php:168
10. Horde_Stream->substring() /usr/share/pear/Horde/Stream.php:348
11. Horde::debug() /usr/share/pear/Horde/Stream.php:404
2014-03-26T09:13:02+01:00 DEBUG: Variable information:
int(9223372036854775807)
Backtrace:
1. Horde_Imap_Client_Base->shutdown()
2. Horde_Imap_Client_Base->logout()
/usr/share/pear/Horde/Imap/Client/Base.php:294
3. Horde_Imap_Client_Socket->_logout()
/usr/share/pear/Horde/Imap/Client/Base.php:780
4. Horde_Imap_Client_Socket->_sendCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:813
5. Horde_Imap_Client_Socket->_sendCmdChunk()
/usr/share/pear/Horde/Imap/Client/Socket.php:3857
6. Horde_Imap_Client_Socket->_getLine()
/usr/share/pear/Horde/Imap/Client/Socket.php:3935
7. Horde_Imap_Client_Socket->_serverResponse()
/usr/share/pear/Horde/Imap/Client/Socket.php:4161
8. Horde_Imap_Client_Socket->_parseFetch()
/usr/share/pear/Horde/Imap/Client/Socket.php:4356
9. Horde_Imap_Client_Socket->_parseEnvelope()
/usr/share/pear/Horde/Imap/Client/Socket.php:2853
10. Horde_Imap_Client_Tokenize->flushIterator()
/usr/share/pear/Horde/Imap/Client/Socket.php:3174
11. Horde_Imap_Client_Tokenize->next()
/usr/share/pear/Horde/Imap/Client/Tokenize.php:138
12. Horde_Stream->substring()
/usr/share/pear/Horde/Imap/Client/Tokenize.php:262
13. Horde::debug() /usr/share/pear/Horde/Stream.php:370
2014-03-26T09:13:02+01:00 DEBUG: Variable information:
int(9223372036854775807)
Backtrace:
1. Horde_Imap_Client_Base->shutdown()
2. Horde_Imap_Client_Base->logout()
/usr/share/pear/Horde/Imap/Client/Base.php:294
3. Horde_Imap_Client_Socket->_logout()
/usr/share/pear/Horde/Imap/Client/Base.php:780
4. Horde_Imap_Client_Socket->_sendCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:813
5. Horde_Imap_Client_Socket->_sendCmdChunk()
/usr/share/pear/Horde/Imap/Client/Socket.php:3857
6. Horde_Imap_Client_Socket->_getLine()
/usr/share/pear/Horde/Imap/Client/Socket.php:3935
7. Horde_Imap_Client_Socket->_serverResponse()
/usr/share/pear/Horde/Imap/Client/Socket.php:4161
8. Horde_Imap_Client_Socket->_parseFetch()
/usr/share/pear/Horde/Imap/Client/Socket.php:4356
9. Horde_Imap_Client_Socket->_parseEnvelope()
/usr/share/pear/Horde/Imap/Client/Socket.php:2853
10. Horde_Imap_Client_Tokenize->flushIterator()
/usr/share/pear/Horde/Imap/Client/Socket.php:3174
11. Horde_Imap_Client_Tokenize->next()
/usr/share/pear/Horde/Imap/Client/Tokenize.php:138
12. Horde_Stream->substring()
/usr/share/pear/Horde/Imap/Client/Tokenize.php:262
13. Horde::debug() /usr/share/pear/Horde/Stream.php:404
file display this error:
of the function (line 369, for me) and right before this line (line
401 for me):
while (!feof($this->stream) && ($to_end || $length)) {
The question is what the value of $length is, since that's the trouble
spot. And whether $length is being changed from the time of the
function call to the time it is used.
I have included Horde::debug($out) in Stream.php (line 410). The log
file display this error:
- When checking mails in correct Folder (Sent)
2014-03-25T11:09:55+01:00 DEBUG: Variable information:
string(21) "user001@mydomains.com"
Backtrace:
1. IMP_Basic_Base->__construct() /var/www/html/horde/imp/basic.php:34
2. IMP_Basic_Mailbox->_init() /var/www/html/horde/imp/lib/Basic/Base.php:69
3. IMP_Imap->openMailbox() /var/www/html/horde/imp/lib/Basic/Mailbox.php:67
4. IMP_Imap->__call() /var/www/html/horde/imp/lib/Basic/Mailbox.php:67
5. call_user_func_array() /var/www/html/horde/imp/lib/Imap.php:568
6. Horde_Imap_Client_Base->openMailbox()
7. Horde_Imap_Client_Base->login()
/usr/share/pear/Horde/Imap/Client/Base.php:937
8. Horde_Imap_Client_Socket->_login()
/usr/share/pear/Horde/Imap/Client/Base.php:744
9. Horde_Imap_Client_Socket->_tryLogin()
/usr/share/pear/Horde/Imap/Client/Socket.php:468
10. Horde_Imap_Client_Socket->_sendCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:744
11. Horde_Imap_Client_Socket->_sendCmdChunk()
/usr/share/pear/Horde/Imap/Client/Socket.php:3857
12. Horde_Imap_Client_Socket->_processCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:3913
13. Horde_Imap_Client_Data_Format_String->escape()
/usr/share/pear/Horde/Imap/Client/Socket.php:4038
14. Horde_Stream->getString()
/usr/share/pear/Horde/Imap/Client/Data/Format/String.php:96
15. Horde_Stream->substring() /usr/share/pear/Horde/Stream.php:348
16. Horde::debug() /usr/share/pear/Horde/Stream.php:410
2014-03-25T11:09:55+01:00 DEBUG: Variable information:
string(7) "user001"
Backtrace:
1. IMP_Basic_Base->__construct() /var/www/html/horde/imp/basic.php:34
2. IMP_Basic_Mailbox->_init() /var/www/html/horde/imp/lib/Basic/Base.php:69
3. IMP_Imap->openMailbox() /var/www/html/horde/imp/lib/Basic/Mailbox.php:67
4. IMP_Imap->__call() /var/www/html/horde/imp/lib/Basic/Mailbox.php:67
5. call_user_func_array() /var/www/html/horde/imp/lib/Imap.php:568
6. Horde_Imap_Client_Base->openMailbox()
7. Horde_Imap_Client_Base->login()
/usr/share/pear/Horde/Imap/Client/Base.php:937
8. Horde_Imap_Client_Socket->_login()
/usr/share/pear/Horde/Imap/Client/Base.php:744
9. Horde_Imap_Client_Socket->_tryLogin()
/usr/share/pear/Horde/Imap/Client/Socket.php:468
10. Horde_Imap_Client_Socket->_sendCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:744
11. Horde_Imap_Client_Socket->_sendCmdChunk()
/usr/share/pear/Horde/Imap/Client/Socket.php:3857
12. Horde_Imap_Client_Socket->_processCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:3913
13. Horde_Imap_Client_Data_Format_String->escape()
/usr/share/pear/Horde/Imap/Client/Socket.php:4038
14. Horde_Stream->getString()
/usr/share/pear/Horde/Imap/Client/Data/Format/String.php:96
15. Horde_Stream->substring() /usr/share/pear/Horde/Stream.php:348
16. Horde::debug() /usr/share/pear/Horde/Stream.php:410
2014-03-25T11:09:55+01:00 DEBUG: Variable information:
string(4) "Sent"
Backtrace:
1. IMP_Basic_Base->__construct() /var/www/html/horde/imp/basic.php:34
2. IMP_Basic_Mailbox->_init() /var/www/html/horde/imp/lib/Basic/Base.php:69
3. IMP_Imap->openMailbox() /var/www/html/horde/imp/lib/Basic/Mailbox.php:67
4. IMP_Imap->__call() /var/www/html/horde/imp/lib/Basic/Mailbox.php:67
5. call_user_func_array() /var/www/html/horde/imp/lib/Imap.php:568
6. Horde_Imap_Client_Base->openMailbox()
7. Horde_Imap_Client_Socket->_openMailbox()
/usr/share/pear/Horde/Imap/Client/Base.php:955
8. Horde_Imap_Client_Socket->_sendCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:1055
9. Horde_Imap_Client_Socket->_sendCmdChunk()
/usr/share/pear/Horde/Imap/Client/Socket.php:3857
10. Horde_Imap_Client_Socket->_processCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:3913
11. Horde_Imap_Client_Data_Format_String->escape()
/usr/share/pear/Horde/Imap/Client/Socket.php:4038
12. Horde_Stream->getString()
/usr/share/pear/Horde/Imap/Client/Data/Format/String.php:96
13. Horde_Stream->substring() /usr/share/pear/Horde/Stream.php:348
14. Horde::debug() /usr/share/pear/Horde/Stream.php:410
2014-03-25T11:09:55+01:00 DEBUG: Variable information:
string(4) "1:28"
Backtrace:
1. IMP_Basic_Base->__construct() /var/www/html/horde/imp/basic.php:34
2. IMP_Basic_Mailbox->_init() /var/www/html/horde/imp/lib/Basic/Base.php:69
3. IMP_Mailbox_List->getMailboxArray()
/var/www/html/horde/imp/lib/Basic/Mailbox.php:258
4. IMP_Imap->fetch() /var/www/html/horde/imp/lib/Mailbox/List.php:190
5. IMP_Imap->__call() /var/www/html/horde/imp/lib/Mailbox/List.php:190
6. call_user_func_array() /var/www/html/horde/imp/lib/Imap.php:568
7. Horde_Imap_Client_Base->fetch()
8. Horde_Imap_Client_Base->_fetchWrapper()
/usr/share/pear/Horde/Imap/Client/Base.php:2375
9. Horde_Imap_Client_Socket->_fetch()
/usr/share/pear/Horde/Imap/Client/Base.php:2613
10. Horde_Imap_Client_Socket->_fetchCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:2558
11. Horde_Imap_Client_Ids->split()
/usr/share/pear/Horde/Imap/Client/Socket.php:2786
12. Horde_Stream->substring() /usr/share/pear/Horde/Imap/Client/Ids.php:242
13. Horde::debug() /usr/share/pear/Horde/Stream.php:410
2014-03-25T11:09:55+01:00 DEBUG: Variable information:
string(4) " {2}"
Backtrace:
1. IMP_Basic_Base->__construct() /var/www/html/horde/imp/basic.php:34
2. IMP_Basic_Mailbox->_init() /var/www/html/horde/imp/lib/Basic/Base.php:69
3. IMP_Mailbox_List->getMailboxArray()
/var/www/html/horde/imp/lib/Basic/Mailbox.php:258
4. IMP_Imap->fetch() /var/www/html/horde/imp/lib/Mailbox/List.php:190
5. IMP_Imap->__call() /var/www/html/horde/imp/lib/Mailbox/List.php:190
6. call_user_func_array() /var/www/html/horde/imp/lib/Imap.php:568
7. Horde_Imap_Client_Base->fetch()
8. Horde_Imap_Client_Base->_fetchWrapper()
/usr/share/pear/Horde/Imap/Client/Base.php:2375
9. Horde_Imap_Client_Socket->_fetch()
/usr/share/pear/Horde/Imap/Client/Base.php:2613
10. Horde_Imap_Client_Socket->_sendCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:2563
11. Horde_Imap_Client_Socket->_sendCmdChunk()
/usr/share/pear/Horde/Imap/Client/Socket.php:3857
12. Horde_Imap_Client_Socket->_getLine()
/usr/share/pear/Horde/Imap/Client/Socket.php:3935
13. Horde_Imap_Client_Socket_Connection_Socket->read()
/usr/share/pear/Horde/Imap/Client/Socket.php:4139
14. Horde_Imap_Client_Tokenize->getLiteralLength()
/usr/share/pear/Horde/Imap/Client/Socket/Connection/Socket.php:146
15. Horde_Stream->getString()
/usr/share/pear/Horde/Imap/Client/Tokenize.php:168
16. Horde_Stream->substring() /usr/share/pear/Horde/Stream.php:348
17. Horde::debug() /usr/share/pear/Horde/Stream.php:410
2014-03-25T11:09:55+01:00 DEBUG: Variable information:
string(2) "
"
Backtrace:
1. IMP_Basic_Base->__construct() /var/www/html/horde/imp/basic.php:34
2. IMP_Basic_Mailbox->_init() /var/www/html/horde/imp/lib/Basic/Base.php:69
3. IMP_Mailbox_List->getMailboxArray()
/var/www/html/horde/imp/lib/Basic/Mailbox.php:258
4. IMP_Imap->fetch() /var/www/html/horde/imp/lib/Mailbox/List.php:190
5. IMP_Imap->__call() /var/www/html/horde/imp/lib/Mailbox/List.php:190
6. call_user_func_array() /var/www/html/horde/imp/lib/Imap.php:568
7. Horde_Imap_Client_Base->fetch()
8. Horde_Imap_Client_Base->_fetchWrapper()
/usr/share/pear/Horde/Imap/Client/Base.php:2375
9. Horde_Imap_Client_Socket->_fetch()
/usr/share/pear/Horde/Imap/Client/Base.php:2613
10. Horde_Imap_Client_Socket->_sendCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:2563
11. Horde_Imap_Client_Socket->_sendCmdChunk()
/usr/share/pear/Horde/Imap/Client/Socket.php:3857
12. Horde_Imap_Client_Socket->_getLine()
/usr/share/pear/Horde/Imap/Client/Socket.php:3935
13. Horde_Imap_Client_Socket->_serverResponse()
/usr/share/pear/Horde/Imap/Client/Socket.php:4161
14. Horde_Imap_Client_Socket->_parseFetch()
/usr/share/pear/Horde/Imap/Client/Socket.php:4356
15. Horde_Imap_Client_Tokenize->next()
/usr/share/pear/Horde/Imap/Client/Socket.php:2905
16. Horde_Stream->substring()
/usr/share/pear/Horde/Imap/Client/Tokenize.php:262
17. Horde::debug() /usr/share/pear/Horde/Stream.php:410
2014-03-25T11:09:55+01:00 DEBUG: Variable information:
string(4) " {2}"
Backtrace:
1. IMP_Basic_Base->__construct() /var/www/html/horde/imp/basic.php:34
2. IMP_Basic_Mailbox->_init() /var/www/html/horde/imp/lib/Basic/Base.php:69
3. IMP_Mailbox_List->getMailboxArray()
/var/www/html/horde/imp/lib/Basic/Mailbox.php:258
4. IMP_Imap->fetch() /var/www/html/horde/imp/lib/Mailbox/List.php:190
5. IMP_Imap->__call() /var/www/html/horde/imp/lib/Mailbox/List.php:190
6. call_user_func_array() /var/www/html/horde/imp/lib/Imap.php:568
7. Horde_Imap_Client_Base->fetch()
8. Horde_Imap_Client_Base->_fetchWrapper()
/usr/share/pear/Horde/Imap/Client/Base.php:2375
9. Horde_Imap_Client_Socket->_fetch()
/usr/share/pear/Horde/Imap/Client/Base.php:2613
10. Horde_Imap_Client_Socket->_sendCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:2563
11. Horde_Imap_Client_Socket->_sendCmdChunk()
/usr/share/pear/Horde/Imap/Client/Socket.php:3857
12. Horde_Imap_Client_Socket->_getLine()
/usr/share/pear/Horde/Imap/Client/Socket.php:3935
13. Horde_Imap_Client_Socket_Connection_Socket->read()
/usr/share/pear/Horde/Imap/Client/Socket.php:4139
14. Horde_Imap_Client_Tokenize->getLiteralLength()
/usr/share/pear/Horde/Imap/Client/Socket/Connection/Socket.php:146
15. Horde_Stream->getString()
/usr/share/pear/Horde/Imap/Client/Tokenize.php:168
16. Horde_Stream->substring() /usr/share/pear/Horde/Stream.php:348
17. Horde::debug() /usr/share/pear/Horde/Stream.php:410
2014-03-25T11:09:55+01:00 DEBUG: Variable information:
string(2) "
"
Backtrace:
1. IMP_Basic_Base->__construct() /var/www/html/horde/imp/basic.php:34
2. IMP_Basic_Mailbox->_init() /var/www/html/horde/imp/lib/Basic/Base.php:69
3. IMP_Mailbox_List->getMailboxArray()
/var/www/html/horde/imp/lib/Basic/Mailbox.php:258
4. IMP_Imap->fetch() /var/www/html/horde/imp/lib/Mailbox/List.php:190
5. IMP_Imap->__call() /var/www/html/horde/imp/lib/Mailbox/List.php:190
6. call_user_func_array() /var/www/html/horde/imp/lib/Imap.php:568
7. Horde_Imap_Client_Base->fetch()
8. Horde_Imap_Client_Base->_fetchWrapper()
/usr/share/pear/Horde/Imap/Client/Base.php:2375
9. Horde_Imap_Client_Socket->_fetch()
/usr/share/pear/Horde/Imap/Client/Base.php:2613
10. Horde_Imap_Client_Socket->_sendCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:2563
11. Horde_Imap_Client_Socket->_sendCmdChunk()
/usr/share/pear/Horde/Imap/Client/Socket.php:3857
12. Horde_Imap_Client_Socket->_getLine()
/usr/share/pear/Horde/Imap/Client/Socket.php:3935
13. Horde_Imap_Client_Socket->_serverResponse()
/usr/share/pear/Horde/Imap/Client/Socket.php:4161
14. Horde_Imap_Client_Socket->_parseFetch()
/usr/share/pear/Horde/Imap/Client/Socket.php:4356
15. Horde_Imap_Client_Tokenize->next()
/usr/share/pear/Horde/Imap/Client/Socket.php:2905
16. Horde_Stream->substring()
/usr/share/pear/Horde/Imap/Client/Tokenize.php:262
17. Horde::debug() /usr/share/pear/Horde/Stream.php:410
.....................................
............. More mails ............
.....................................
2014-03-25T11:09:55+01:00 DEBUG: Variable information:
string(4) "Sent"
Backtrace:
1. IMP_Basic_Base->__construct() /var/www/html/horde/imp/basic.php:34
2. IMP_Basic_Mailbox->_init() /var/www/html/horde/imp/lib/Basic/Base.php:69
3. IMP_View_Subinfo->__construct()
/var/www/html/horde/imp/lib/Basic/Mailbox.php:385
4. IMP_Quota_Ui->quota() /var/www/html/horde/imp/lib/View/Subinfo.php:50
5. IMP_Quota_Imap->getQuota() /var/www/html/horde/imp/lib/Quota/Ui.php:49
6. IMP_Imap->getQuotaRoot() /var/www/html/horde/imp/lib/Quota/Imap.php:45
7. IMP_Imap->__call() /var/www/html/horde/imp/lib/Quota/Imap.php:45
8. call_user_func_array() /var/www/html/horde/imp/lib/Imap.php:568
9. Horde_Imap_Client_Base->getQuotaRoot()
10. Horde_Imap_Client_Socket->_getQuotaRoot()
/usr/share/pear/Horde/Imap/Client/Base.php:2989
11. Horde_Imap_Client_Socket->_sendCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:3439
12. Horde_Imap_Client_Socket->_sendCmdChunk()
/usr/share/pear/Horde/Imap/Client/Socket.php:3857
13. Horde_Imap_Client_Socket->_processCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:3913
14. Horde_Imap_Client_Data_Format_String->escape()
/usr/share/pear/Horde/Imap/Client/Socket.php:4038
15. Horde_Stream->getString()
/usr/share/pear/Horde/Imap/Client/Data/Format/String.php:96
16. Horde_Stream->substring() /usr/share/pear/Horde/Stream.php:348
17. Horde::debug() /usr/share/pear/Horde/Stream.php:410
2014-03-25T11:09:55+01:00 DEBUG: Variable information:
string(5) "INBOX"
Backtrace:
1. Horde_PageOutput->footer() /var/www/html/horde/imp/basic.php:50
2. Horde::sidebar() /usr/share/pear/Horde/PageOutput.php:890
3. Horde_Registry->callAppMethod() /usr/share/pear/Horde.php:1286
4. call_user_func_array() /usr/share/pear/Horde/Registry.php:1213
5. IMP_Application->sidebar()
6. IMP_Imap_Tree->createTree()
/var/www/html/horde/imp/lib/Application.php:282
7. IMP_Mailbox->__get() /var/www/html/horde/imp/lib/Imap/Tree.php:1715
8. IMP_Imap->status() /var/www/html/horde/imp/lib/Mailbox.php:616
9. IMP_Imap->__call() /var/www/html/horde/imp/lib/Mailbox.php:616
10. call_user_func_array() /var/www/html/horde/imp/lib/Imap.php:568
11. Horde_Imap_Client_Base->status()
12. Horde_Imap_Client_Base->openMailbox()
/usr/share/pear/Horde/Imap/Client/Base.php:1608
13. Horde_Imap_Client_Socket->_openMailbox()
/usr/share/pear/Horde/Imap/Client/Base.php:955
14. Horde_Imap_Client_Socket->_sendCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:1055
15. Horde_Imap_Client_Socket->_sendCmdChunk()
/usr/share/pear/Horde/Imap/Client/Socket.php:3857
16. Horde_Imap_Client_Socket->_processCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:3913
17. Horde_Imap_Client_Data_Format_String->escape()
/usr/share/pear/Horde/Imap/Client/Socket.php:4038
18. Horde_Stream->getString()
/usr/share/pear/Horde/Imap/Client/Data/Format/String.php:96
19. Horde_Stream->substring() /usr/share/pear/Horde/Stream.php:348
20. Horde::debug() /usr/share/pear/Horde/Stream.php:410
- When checking failed mails in Folder (zzzz)
2014-03-25T11:13:57+01:00 DEBUG: Variable information:
string(21) "user001@mydomains.com"
Backtrace:
1. IMP_Basic_Base->__construct() /var/www/html/horde/imp/basic.php:34
2. IMP_Basic_Mailbox->_init() /var/www/html/horde/imp/lib/Basic/Base.php:69
3. IMP_Imap->openMailbox() /var/www/html/horde/imp/lib/Basic/Mailbox.php:67
4. IMP_Imap->__call() /var/www/html/horde/imp/lib/Basic/Mailbox.php:67
5. call_user_func_array() /var/www/html/horde/imp/lib/Imap.php:568
6. Horde_Imap_Client_Base->openMailbox()
7. Horde_Imap_Client_Base->login()
/usr/share/pear/Horde/Imap/Client/Base.php:937
8. Horde_Imap_Client_Socket->_login()
/usr/share/pear/Horde/Imap/Client/Base.php:744
9. Horde_Imap_Client_Socket->_tryLogin()
/usr/share/pear/Horde/Imap/Client/Socket.php:468
10. Horde_Imap_Client_Socket->_sendCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:744
11. Horde_Imap_Client_Socket->_sendCmdChunk()
/usr/share/pear/Horde/Imap/Client/Socket.php:3857
12. Horde_Imap_Client_Socket->_processCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:3913
13. Horde_Imap_Client_Data_Format_String->escape()
/usr/share/pear/Horde/Imap/Client/Socket.php:4038
14. Horde_Stream->getString()
/usr/share/pear/Horde/Imap/Client/Data/Format/String.php:96
15. Horde_Stream->substring() /usr/share/pear/Horde/Stream.php:348
16. Horde::debug() /usr/share/pear/Horde/Stream.php:410
2014-03-25T11:13:57+01:00 DEBUG: Variable information:
string(7) "user001"
Backtrace:
1. IMP_Basic_Base->__construct() /var/www/html/horde/imp/basic.php:34
2. IMP_Basic_Mailbox->_init() /var/www/html/horde/imp/lib/Basic/Base.php:69
3. IMP_Imap->openMailbox() /var/www/html/horde/imp/lib/Basic/Mailbox.php:67
4. IMP_Imap->__call() /var/www/html/horde/imp/lib/Basic/Mailbox.php:67
5. call_user_func_array() /var/www/html/horde/imp/lib/Imap.php:568
6. Horde_Imap_Client_Base->openMailbox()
7. Horde_Imap_Client_Base->login()
/usr/share/pear/Horde/Imap/Client/Base.php:937
8. Horde_Imap_Client_Socket->_login()
/usr/share/pear/Horde/Imap/Client/Base.php:744
9. Horde_Imap_Client_Socket->_tryLogin()
/usr/share/pear/Horde/Imap/Client/Socket.php:468
10. Horde_Imap_Client_Socket->_sendCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:744
11. Horde_Imap_Client_Socket->_sendCmdChunk()
/usr/share/pear/Horde/Imap/Client/Socket.php:3857
12. Horde_Imap_Client_Socket->_processCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:3913
13. Horde_Imap_Client_Data_Format_String->escape()
/usr/share/pear/Horde/Imap/Client/Socket.php:4038
14. Horde_Stream->getString()
/usr/share/pear/Horde/Imap/Client/Data/Format/String.php:96
15. Horde_Stream->substring() /usr/share/pear/Horde/Stream.php:348
16. Horde::debug() /usr/share/pear/Horde/Stream.php:410
2014-03-25T11:13:57+01:00 DEBUG: Variable information:
string(4) "zzzz"
Backtrace:
1. IMP_Basic_Base->__construct() /var/www/html/horde/imp/basic.php:34
2. IMP_Basic_Mailbox->_init() /var/www/html/horde/imp/lib/Basic/Base.php:69
3. IMP_Imap->openMailbox() /var/www/html/horde/imp/lib/Basic/Mailbox.php:67
4. IMP_Imap->__call() /var/www/html/horde/imp/lib/Basic/Mailbox.php:67
5. call_user_func_array() /var/www/html/horde/imp/lib/Imap.php:568
6. Horde_Imap_Client_Base->openMailbox()
7. Horde_Imap_Client_Socket->_openMailbox()
/usr/share/pear/Horde/Imap/Client/Base.php:955
8. Horde_Imap_Client_Socket->_sendCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:1055
9. Horde_Imap_Client_Socket->_sendCmdChunk()
/usr/share/pear/Horde/Imap/Client/Socket.php:3857
10. Horde_Imap_Client_Socket->_processCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:3913
11. Horde_Imap_Client_Data_Format_String->escape()
/usr/share/pear/Horde/Imap/Client/Socket.php:4038
12. Horde_Stream->getString()
/usr/share/pear/Horde/Imap/Client/Data/Format/String.php:96
13. Horde_Stream->substring() /usr/share/pear/Horde/Stream.php:348
14. Horde::debug() /usr/share/pear/Horde/Stream.php:410
2014-03-25T11:13:57+01:00 DEBUG: Variable information:
string(11) "13,22,30:32"
Backtrace:
1. IMP_Basic_Base->__construct() /var/www/html/horde/imp/basic.php:34
2. IMP_Basic_Mailbox->_init() /var/www/html/horde/imp/lib/Basic/Base.php:69
3. IMP_Mailbox_List->getMailboxArray()
/var/www/html/horde/imp/lib/Basic/Mailbox.php:258
4. IMP_Imap->fetch() /var/www/html/horde/imp/lib/Mailbox/List.php:190
5. IMP_Imap->__call() /var/www/html/horde/imp/lib/Mailbox/List.php:190
6. call_user_func_array() /var/www/html/horde/imp/lib/Imap.php:568
7. Horde_Imap_Client_Base->fetch()
8. Horde_Imap_Client_Base->_fetchWrapper()
/usr/share/pear/Horde/Imap/Client/Base.php:2375
9. Horde_Imap_Client_Socket->_fetch()
/usr/share/pear/Horde/Imap/Client/Base.php:2613
10. Horde_Imap_Client_Socket->_fetchCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:2558
11. Horde_Imap_Client_Ids->split()
/usr/share/pear/Horde/Imap/Client/Socket.php:2786
12. Horde_Stream->substring() /usr/share/pear/Horde/Imap/Client/Ids.php:242
13. Horde::debug() /usr/share/pear/Horde/Stream.php:410
2014-03-25T11:13:57+01:00 DEBUG: Variable information:
string(4) " {2}"
Backtrace:
1. IMP_Basic_Base->__construct() /var/www/html/horde/imp/basic.php:34
2. IMP_Basic_Mailbox->_init() /var/www/html/horde/imp/lib/Basic/Base.php:69
3. IMP_Mailbox_List->getMailboxArray()
/var/www/html/horde/imp/lib/Basic/Mailbox.php:258
4. IMP_Imap->fetch() /var/www/html/horde/imp/lib/Mailbox/List.php:190
5. IMP_Imap->__call() /var/www/html/horde/imp/lib/Mailbox/List.php:190
6. call_user_func_array() /var/www/html/horde/imp/lib/Imap.php:568
7. Horde_Imap_Client_Base->fetch()
8. Horde_Imap_Client_Base->_fetchWrapper()
/usr/share/pear/Horde/Imap/Client/Base.php:2375
9. Horde_Imap_Client_Socket->_fetch()
/usr/share/pear/Horde/Imap/Client/Base.php:2613
10. Horde_Imap_Client_Socket->_sendCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:2563
11. Horde_Imap_Client_Socket->_sendCmdChunk()
/usr/share/pear/Horde/Imap/Client/Socket.php:3857
12. Horde_Imap_Client_Socket->_getLine()
/usr/share/pear/Horde/Imap/Client/Socket.php:3935
13. Horde_Imap_Client_Socket_Connection_Socket->read()
/usr/share/pear/Horde/Imap/Client/Socket.php:4139
14. Horde_Imap_Client_Tokenize->getLiteralLength()
/usr/share/pear/Horde/Imap/Client/Socket/Connection/Socket.php:146
15. Horde_Stream->getString()
/usr/share/pear/Horde/Imap/Client/Tokenize.php:168
16. Horde_Stream->substring() /usr/share/pear/Horde/Stream.php:348
17. Horde::debug() /usr/share/pear/Horde/Stream.php:410
2014-03-25T11:13:57+01:00 DEBUG: Variable information:
string(5) " {35}"
Backtrace:
1. Horde_Imap_Client_Base->shutdown()
2. Horde_Imap_Client_Base->logout()
/usr/share/pear/Horde/Imap/Client/Base.php:294
3. Horde_Imap_Client_Socket->_logout()
/usr/share/pear/Horde/Imap/Client/Base.php:780
4. Horde_Imap_Client_Socket->_sendCmd()
/usr/share/pear/Horde/Imap/Client/Socket.php:813
5. Horde_Imap_Client_Socket->_sendCmdChunk()
/usr/share/pear/Horde/Imap/Client/Socket.php:3857
6. Horde_Imap_Client_Socket->_getLine()
/usr/share/pear/Horde/Imap/Client/Socket.php:3935
7. Horde_Imap_Client_Socket_Connection_Socket->read()
/usr/share/pear/Horde/Imap/Client/Socket.php:4139
8. Horde_Imap_Client_Tokenize->getLiteralLength()
/usr/share/pear/Horde/Imap/Client/Socket/Connection/Socket.php:146
9. Horde_Stream->getString()
/usr/share/pear/Horde/Imap/Client/Tokenize.php:168
10. Horde_Stream->substring() /usr/share/pear/Horde/Stream.php:348
11. Horde::debug() /usr/share/pear/Horde/Stream.php:410
Regards.
issues that effect Horde code.
*a*ffect Horde code".
State ⇒ Feedback
support update is (5.3.3-27).
issues that effect Horde code.
And you need to trace/debug the code yourself to figure out *why* the
code is asking for a 2^63 length string (i.e. figuring out how $length
in Horde_Stream#substring() is becoming that value. Horde::debug()
can help with the backtrace part -- see below). Nobody else has
reported this and I can't even begin to tell you how this could happen.
Horde::debug() documentation: http://wiki.horde.org/Doc/Dev/DebugH4
I've tried to display an email that fail in Horde5, in a plataform
with Horde4, and I see the message correctly.
Regards.
support update is (5.3.3-27).
Reh Hat Enterprise Linux 5 64bits don´t have PHP-5.4, the final
support update is (5.3.3-27).
I have defined the debug mode for IMP. When the headers are loading,
the process stop abruptly. The issue only occurs with some mails that
we have identify, thanks to the log file. When delete this mails, the
problem is resolved.
I don't see anything unusual in the headers, but they are always great.
The error log:
[error] [client x] PHP Fatal error: Allowed memory size of 1296039936
bytes exhausted (tried to allocate 9223372036854775808 bytes) in
/usr/share/pear/Horde/Stream.php on line 402, referer: https://
[error] [client x] PHP Fatal error: Call to undefined method
stdClass::getTimer() in /usr/share/pear/Horde/Imap/Client/Socket.php
on line 4149, referer: https://
Regards
(tried to allocate 9223372036854775808 bytes) in
/usr/share/pear/Horde/Stream.php on line 402, referer: https://.......
Madness and Warren Buffett).
But I have no idea how this could even happen. This really sounds
like a PHP issue. You will have to provide exact instructions on how
to reproduce using a recent version of PHP (i.e. at least PHP 5.4).
Priority ⇒ 1. Low
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Queue ⇒ IMP
Summary ⇒ PHP Error to view emails IMP (Interger overflow)
Type ⇒ Bug
We are having issues with some users that access to IMP, in dynamic
and basic mode. The error is the blank windows and none messages in
basic mode or display "Error connect to server" in dynamic mode.
The version to PHP is 5.3 and IMP 6.4. The IMAP server is Dovecot 2.2
PHP Fatal error: Allowed memory size of 1296039936 bytes exhausted
(tried to allocate 9223372036854775808 bytes) in
/usr/share/pear/Horde/Stream.php on line 402, referer: https://.......
Stream.php on line 402 ( $read = fread($this->stream, $to_end ?
16384 : $length); )
Regards.