Bug #12555: imap_body on empty messages causes seg fault
| From: | jon at cmoo dot com | Date: | Fri, 03 Aug 2001 16:08:10 +0000 |
| Subject: | Bug #12555: imap_body on empty messages causes seg fault | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-61983@lists.php.net to get a copy of this message | ||
From: jon@cmoo.com
Operating system: Linux
PHP version: 4.0.6
PHP Bug Type: IMAP related
Bug description: imap_body on empty messages causes seg fault
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 bug report at: http://bugs.php.net/?id=12555&edit=1