Edit report at https://bugs.php.net/bug.php?id=55336&edit=1
ID: 55336
User updated by: grabli_2005 at mail dot ru
Reported by: grabli_2005 at mail dot ru
-Summary: mail() fountion is not thread safe for Windows
builds
+Summary: mail() function is not thread safe for Windows
builds
Status: Open
Type: Bug
Package: Network related
Operating System: Windows
PHP Version: 5.4.0alpha2
Block user comment: N
Private report: N
New Comment:
fixed typo in title
Previous Comments:
------------------------------------------------------------------------
[2011-08-01 11:50:39] grabli_2005 at mail dot ru
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 this bug report at https://bugs.php.net/bug.php?id=55336&edit=1