From: Operating system: CentOS 64-bit PHP version: 5.3.6 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 & http://bugs.php.net/bug.php?id=53292 is happening again. When I try to read a mail message with a long list of To: addresses PHP crashes every time. System Infomation: OS: CentOS 2.6.18 64-bit PHP: 5.3.6 Apache: 2.2.3 C-Client: 2.2.1 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 crashed at imap_header() No error found in error_log -- Edit bug report at http://bugs.php.net/bug.php?id=54406&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54406&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54406&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54406&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=54406&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54406&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=54406&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=54406&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=54406&r=needscript Try newer version: http://bugs.php.net/fix.php?id=54406&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=54406&r=support Expected behavior: http://bugs.php.net/fix.php?id=54406&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=54406&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=54406&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=54406&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54406&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=54406&r=dst IIS Stability: http://bugs.php.net/fix.php?id=54406&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=54406&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=54406&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=54406&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=54406&r=mysqlcfg