#24716 [Opn]: imap_fetchstructure() hangs on certain messages
| From: | akropel1 at rochester dot rr dot com | Date: | Sat, 19 Jul 2003 20:09:27 +0000 |
| Subject: | #24716 [Opn]: imap_fetchstructure() hangs on certain messages | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-44324@lists.php.net to get a copy of this message | ||
ID: 24716
User updated by: akropel1 at rochester dot rr dot com
Reported By: akropel1 at rochester dot rr dot com
Status: Open
Bug Type: IMAP related
Operating System: OpenBSD-3.0
PHP Version: 4.3.3RC1
New Comment:
Found some additional messages that fail in the same way:
http://www.kroptech.com/~adk0212/failedmsg.3
http://www.kroptech.com/~adk0212/failedmsg.4
http://www.kroptech.com/~adk0212/failedmsg.5
Previous Comments:
------------------------------------------------------------------------
[2003-07-19 10:25:28] akropel1 at rochester dot rr dot com
Description:
------------
Calling imap_fetchstructure() on certain multi-part messages causes an
indefinite hang (function never returns) and the script eventually
times out. I've been running a database import of an old mail archive
and out of about 172,000 messages, 2 seem to induce this hang. Other
imap_* functions seem to work fine, including imap_fetchheader() and
imap_headerinfo().
The full messages can be found here:
http://www.kroptech.com/~adk0212/failedmsg.1
http://www.kroptech.com/~adk0212/failedmsg.2
Versions:
c-client from imap-2002d
apache_1.3.27
PHP Config:
./configure --with-apache=/home/adk0212/downloads/apache_1.3.27
--with-sysvsem --with-sysvshm --with-pgsql --with-mysql
--with-imap=/home/adk0212/imap-2002d --with-mcrypt --with-gettext
--with-xml --with-curl
Reproduce code:
---------------
<?php
$pop_user = "someuser";
$pop_pass = "somepassword";
$pop_host = "somehost.somewhere.com";
$mbox_path = "/path/to/failedmsg.1";
$pop_conn_string = "\{$pop_host:143/imap}$mbox_path";
$pop_conn = imap_open($pop_conn_string, $pop_user, $pop_pass);
// Assuming message-of-death is first one in the mbox
$mimeobj = imap_fetchstructure($pop_conn, 1);
// Never gets here...
imap_close($pop_conn);
?>
Expected result:
----------------
imap_fetchstructure() should quickly return the structure of the
message.
Actual result:
--------------
Indefinitely hang. imap_fetchstructure() never returns.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24716&edit=1