From: enelson at modulusgroup dot com Operating system: Windows 2000 ADV SRV Exchange 2K PHP version: 4.3.6 PHP Bug Type: Reproducible crash Bug description: Mail function freezes when empty body
Description: ------------ I'm working with PHP 4.3.3, but have tested this behavior in HPP 4.3.6 as well. When using the mail function and attempting to send attachments in HTML email, the message body you send is empty looking something like the following: mail("[EMAIL PROTECTED]","Subject","",$headers); The mail function will freeze due to the "" for the message body. This behavior does not occur under php 4.2.3. Past scripts I've written to post this sort of complex mail that work under this version of PHP freeze when set to run under PHP 4.3.3. Did something change? I didn't see anything in the documentation, but I'm sometimes blind like that. Thank you for your help, -Ethan Nelson, Modulus, LLC Reproduce code: --------------- $headers=<complex mail>; mail("[EMAIL PROTECTED]","Subject","",$headers); Expected result: ---------------- I expect the mail function to run and send the mail through our exchange server. Actual result: -------------- The mail function freezes and a PHP hung process appears in the task manager on the server. -- Edit bug report at http://bugs.php.net/?id=28474&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28474&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28474&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28474&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28474&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28474&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28474&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28474&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28474&r=support Expected behavior: http://bugs.php.net/fix.php?id=28474&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28474&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28474&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28474&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28474&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28474&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28474&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28474&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28474&r=float