From:             kirsch at mediafinanz dot de
Operating system: Windows
PHP version:      5.2.6
PHP Bug Type:     Reproducible crash
Bug description:  PHP crashes when fetching mails with long to-address field 
via pop3

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',
'[EMAIL PROTECTED]', 'mydamnsecretpassword');, but everything works fine if
I use $mailbox = imap_open('{mail.myserver.net:143}INBOX',
'[EMAIL PROTECTED]', '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',
'[EMAIL PROTECTED]', '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 bug report at http://bugs.php.net/?id=45729&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=45729&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=45729&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=45729&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=45729&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=45729&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=45729&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=45729&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=45729&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=45729&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=45729&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=45729&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=45729&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=45729&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45729&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=45729&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=45729&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=45729&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45729&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=45729&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=45729&r=mysqlcfg

Reply via email to