From: Operating system: Windows PHP version: 5.4.0alpha2 Package: Network related Bug Type: Bug Bug description:mail() fountion is not thread safe for Windows builds
Description: ------------ win32\sendmail.c contans static variables and not thread safe. Test script: --------------- It`s not so easy to write test script, because of multithreading and needs of test SMTP server. Expected result: ---------------- mail() funtion should be thread safe. I`ve found this bug years ago. I`ve re-write sendmail.c to not use global variables for php 5.3.0. Also I make it compilable for nix build, so mail() may not start heavy sendmail process and connect directly to local SMTP. You can get this versions here http://lion.rusfur.net/mail_patch.rar Actual result: -------------- mail() fountion is not thread safe. -- Edit bug report at https://bugs.php.net/bug.php?id=55336&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55336&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55336&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55336&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=55336&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55336&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=55336&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=55336&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=55336&r=needscript Try newer version: https://bugs.php.net/fix.php?id=55336&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=55336&r=support Expected behavior: https://bugs.php.net/fix.php?id=55336&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=55336&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=55336&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=55336&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55336&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=55336&r=dst IIS Stability: https://bugs.php.net/fix.php?id=55336&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=55336&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=55336&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=55336&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=55336&r=mysqlcfg