|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-06-19 10:25 UTC] pajoye@php.net
[2008-06-27 01:00 UTC] php-bugs at lists dot php dot net
[2014-06-13 08:12 UTC] salathe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 14:00:01 2025 UTC |
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