ID:               24716
 Updated by:       [EMAIL PROTECTED]
 Reported By:      akropel1 at rochester dot rr dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         IMAP related
 Operating System: OpenBSD-3.0
-PHP Version:      4.3.3RC4-dev
+PHP Version:      4.3.3RC1
 New Comment:

Does this only happen with POP? (could you try with IMAP instead?)



Previous Comments:
------------------------------------------------------------------------

[2003-07-19 15:09:26] akropel1 at rochester dot rr dot com

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

------------------------------------------------------------------------

[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

Reply via email to