ID: 19280 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Closed Bug Type: IMAP related Operating System: RedHat 7.3, 2.4.19 PHP Version: 4CVS-2002-09-07 New Comment:
This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2002-09-26 14:01:58] [EMAIL PROTECTED] If I edit ext/imap/php_imap.c in the function _php_imap_parse_address() and comment the call to rfc822_write_address(tmpstr, addresstmp) on line 3583, then php does not crash. If I modify line 3581 to allocate more space so that it becomes tmpstr = (char *) malloc (len + 2048); not only does php not crash, the call to imap_headerinfo() works. The kludge in _php_imap_get_address_size() that simply adds MAILTMPLEN (defined as 1024 in c-client/mail.h) characters to the length of all of the text is not enough when there is a large number of addresses. Additional length should be calculated as the product of the total number of addresses and the maximum number of additional characters per address that could be expected to be added during a call to rfc822_write_address(). ------------------------------------------------------------------------ [2002-09-26 10:28:06] [EMAIL PROTECTED] The same failure behavior is exhibited with the latest snapshot php4-200209260600. ------------------------------------------------------------------------ [2002-09-19 09:01:40] [EMAIL PROTECTED] The same imap_header() problem appears to happen when compiled with imap-2002.RC6. I downloaded php4-200209190300. Using the same compile options as for php4-200209070600 causes Apache to hang when the module is loaded. So, I'm not able to test the latest snapshot. I may try, again, later today in case it is fixed. ------------------------------------------------------------------------ [2002-09-18 21:38:46] [EMAIL PROTECTED] Sorry my time has disappeared rather quickly in the last few weeks. I'll try to get to this soon, but don't hold your breath. Leaving open. ------------------------------------------------------------------------ [2002-09-18 12:27:39] [EMAIL PROTECTED] zefef ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/19280 -- Edit this bug report at http://bugs.php.net/?id=19280&edit=1