ID:               45313
 Updated by:       [EMAIL PROTECTED]
 Reported By:      toto at lativio dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         IMAP related
 Operating System: Linux
 PHP Version:      5.2CVS-2008-06-19 (snap)
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

Would be nice to have a backtrace and the mails data if possible.


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

[2008-06-19 09:46:48] toto at lativio dot com

Description:
------------
When I'm using the imap_header() function to parse an email account
emails very often the script is crashing with "Segmentation fault".
I saw this in the PHP bugs, but they all was old and for the oldest PHP
versions. Now I have this bug again.

Reproduce code:
---------------
$mailbox=imap_open("{mail.myhost.com:110/pop3}INBOX","support","****");
$check = imap_check($mailbox);
$messages=$check->Nmsgs;
for($i=1;$i<=$messages;$i++)
{
    $header = imap_headerinfo($mailbox,$i);
    print_r($header);
    echo date("Y-m-d",$header->udate)."\n";
}

Expected result:
----------------
I expect to see the dates of the all emails.

Actual result:
--------------
When I execute the code it began to parse the emails. After few emails
the script hangs for round a minute (or less) and then I receive the
last print_r() results and then Segmentation fault.
The above URL is what the print_r() returns.
http://www.toshko-bg.com/toto/bad_email.html


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


-- 
Edit this bug report at http://bugs.php.net/?id=45313&edit=1

Reply via email to