ID: 33349
User updated by: benjamin dot malynovytch at libertic dot fr
Reported By: benjamin dot malynovytch at libertic dot fr
-Status: Feedback
+Status: Open
Bug Type: IMAP related
Operating System: *
PHP Version: 5CVS-2005-06-20
New Comment:
Illia said:
>If the problem persists, please provide a URL to the complete text of
the message that causes the hang.
As I said just before, no output message are created. No error,
nothing, except the generated code that had been flushed (cleanly)
before the crash.
I can't even give you access to the page the generates this error: it's
placed on an intranet.
Previous Comments:
------------------------------------------------------------------------
[2005-06-20 10:24:02] [EMAIL PROTECTED]
Do not add any strace output here if not asked for.
Please provide the information Ilia asked before.
------------------------------------------------------------------------
[2005-06-20 09:51:13] benjamin dot malynovytch at libertic dot fr
I tried several versions of imap (UW): imap-2001a, imap-2002a,
imap-2004a, imap-2004d, imap-2004e-DEVEL
None of them worked.
I'm afraid their's no error log: the application hangs without
returning anything (would be too easy to debug).
The only thing I know, is that the application hangs just after the
call to "imap_fetchstructure" (did some echo "..."; flush(); to be
sure).
Any idea ?
------------------------------------------------------------------------
[2005-06-18 00:45:26] [EMAIL PROTECTED]
If the problem persists, please provide a URL to the complete text of
the message that causes the hang.
------------------------------------------------------------------------
[2005-06-15 11:36:30] benjamin dot malynovytch at libertic dot fr
Description:
------------
Calling imap_fetchstructure() on certain multi-part messages causes an
indefinite hang (function never returns).
Versions:
Tried: PHP-5.0.3, PHP-5.0.4, PHP-5.0.5-dev
c-client: imap-2004d
Apache: httpd-2.0.53
I gave a look at other related bugs, and checkd that que imap link was
still up when the function was called. I also tried to place a timer
between two function calls.
Nothing worked, the link is still up when que function hangs.
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:
--------------
The function never returns on most mails, and page loading stops.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33349&edit=1