From: Operating system: Windows PHP version: 5.2.14 Package: IMAP related Bug Type: Bug Bug description:imap_header crashes when too may To: addresses exist
Description: ------------ Seems that bug http://bugs.php.net/19280 is happening again. When I try to read a mail message with a long list of To: addresses PHP crashes every time. The email I have issues with has a 168 "To:" addresses in it. Test script: --------------- $mbox = imap_open($imapLocation.'INBOX', $user, $pass); $headerInfo = imap_header($mbox, $mailID); // Above will crash if the message being read has too many To: addresses Expected result: ---------------- Should not crash, should parse as many To: addresses as possible Actual result: -------------- PHP exists with a status other then zero. This status changes each time the script crashes. Windows error log shows Faulting application php.exe, version 5.2.13.13, faulting module php_imap.dll, version 5.2.13.13, fault address 0x00046144. -- Edit bug report at http://bugs.php.net/bug.php?id=53292&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53292&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53292&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53292&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=53292&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53292&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=53292&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=53292&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=53292&r=needscript Try newer version: http://bugs.php.net/fix.php?id=53292&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=53292&r=support Expected behavior: http://bugs.php.net/fix.php?id=53292&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=53292&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=53292&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=53292&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53292&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=53292&r=dst IIS Stability: http://bugs.php.net/fix.php?id=53292&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=53292&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=53292&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=53292&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=53292&r=mysqlcfg