ID:               45729
 Updated by:       j...@php.net
 Reported By:      kirsch at mediafinanz dot de
-Status:           Open
+Status:           Feedback
 Bug Type:         IMAP related
 Operating System: Windows
 PHP Version:      5.2.6
 Assigned To:      pajoye


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

[2009-04-30 20:29:32] paj...@php.net

Please try using this CVS snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/

Please try 5.3 too (different c-client version).

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

[2008-08-06 09:37:37] kirsch at mediafinanz dot de

Description:
------------
When trying to receive a mail with a really long to-address field (e.g.
Spam with 276 receivers) over pop3, PHP crashes. But it seems that it
depends of the way I open the connection to the mailbox.

PHP crashes on long to-address mail if I use $mailbox =
imap_open('{mail.myserver.net:110/pop3/novalidate-cert}INBOX',
'p...@myserver.net', 'mydamnsecretpassword');, but everything works fine
if I use $mailbox = imap_open('{mail.myserver.net:143}INBOX',
'p...@myserver.net', 'mydamnsecretpassword');

Reproduce code:
---------------
//you'll need a mail with a lot of receivers for this test
$mailbox =
imap_open('{mail.myserver.net:110/pop3/novalidate-cert}INBOX',
'p...@myserver.net', 'mydamnsecretpassword');

$check = imap_check($mailbox);

for ($i=1; $i <= $check->Nmsgs; $i++)
{
    $uid = imap_uid($mailbox, $i);
    echo 'UID: '.$uid;
    $messageNumber = imap_msgno($mailbox, $uid);
    echo 'MessageNo: '.$messageNumber;
    $headerinfo = imap_headerinfo($mailbox, $messageNumber);
    [...]
}

Expected result:
----------------
$headerinfo contains an stdObject with headerinformation, like it does
if it is a 'normal' mail

Actual result:
--------------
Crash with message 'This application has requested the Runtime to
terminiate it in an unusual way. Please contact the application's
support team for more information'


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


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

Reply via email to