Bug #12555 Updated: imap_body on empty messages causes seg fault
ID: 12555
User updated by: jon@cmoo.com
Reported By: jon@cmoo.com
Old Status: Feedback
Status: Open
Bug Type: IMAP related
Operating System: Linux
PHP Version: 4.0.6
New Comment:
The version linked to from the documentation pages (4.7 i believe) - though I have tried others
(regressing back). I am minded that this 'could' be a very isolated error caused by the
imap mailbox containing 0 byte files (which clearly would not happen very often). If this is the
case, contact me for details of how to access an account with these 0byte files.
Thanks,
Previous Comments:
------------------------------------------------------------------------
[2001-08-06 07:51:14] sniper@php.net
I can not reproduce this with PHP 4.0.6.
With which c-client version is your PHP linked with?
--Jani
------------------------------------------------------------------------
[2001-08-03 12:08:10] jon@cmoo.com
After opening an imap connection, calling imap_body for a message which is has an empty body will
cause the apache server to seg fault (11). This caused several problems as on some of our accounts
the first message was empty (for other reasons) and so any php imap client would fail immediately on
loading. We have fixed this by testing for message size - but the imap_body code should probably
spot this.
Thanks,
Jon.
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=12555&edit=1
Thread (3 messages)