|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-06-18 00:45 UTC] iliaa@php.net
[2005-06-20 09:51 UTC] benjamin dot malynovytch at libertic dot fr
[2005-06-20 11:54 UTC] sniper@php.net
[2005-06-20 15:11 UTC] benjamin dot malynovytch at libertic dot fr
[2005-06-20 16:01 UTC] root at ka-rel dot cz
[2005-09-07 04:24 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 19:00:02 2025 UTC |
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.