Bug #69115 [Opn->Csd]: crash in mail
Edit report at https://bugs.php.net/bug.php?id=69115&edit=1
ID: 69115
Updated by: ab@php.net
Reported by: mberchtold at gmail dot com
Summary: crash in mail
-Status: Open
+Status: Closed
Type: Bug
Package: Reproducible crash
Operating System: Windows Server 2012 R2
PHP Version: master-Git-2015-02-24 (snap)
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=30830bcefd080cf58231aa195418a4223497ea91
Log: Fixed bug #69115 crash in mail
Previous Comments:
------------------------------------------------------------------------
[2015-02-26 20:41:01] mberchtold at gmail dot com
Yes it only happens on Windows. From what I looks (from my previous pull requests) it seems that the
mail function has not been tested on Windows yet.
------------------------------------------------------------------------
[2015-02-26 20:10:38] aharvey@php.net
Looks Windows-only; I can't reproduce this on OS X or Linux. (Not a huge shock, given how much
code is platform specific in mail()).
Also, we don't ask for backtraces for the hell of it: they genuinely are useful for crash bugs,
because behaviour often varies significantly between different systems. You don't have to
provide one, but not doing so diminishes the chances that someone will investigate your bug.
------------------------------------------------------------------------
[2015-02-24 18:21:04] mberchtold at gmail dot com
You can reproduce the problem with the provided sample script. A backtrace is not necessary to fix
the problem.
------------------------------------------------------------------------
[2015-02-24 18:14:30] requinix@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
------------------------------------------------------------------------
[2015-02-24 16:08:26] mberchtold at gmail dot com
Description:
------------
crash in mail()
The mail is sent but then process crashes
Faulting application name: php-cgi.exe, version: 7.0.0.0, time stamp: 0x54e4c52a
Faulting module name: php7.dll, version: 7.0.0.0, time stamp: 0x54e4c592
Exception code: 0xc0000005
Fault offset: 0x000776fe
Faulting process id: 0x2030
Faulting application start time: 0x01d0504a957ac408
Faulting application path: C:\php\php-cgi.exe
Faulting module path: C:\php\php7.dll
Test script:
---------------
$message = "Line 1\r\nLine 2\r\nLine 3";
mail('caffeinated@example.com', 'My Subject', $message);
Expected result:
----------------
no crash
Actual result:
--------------
crash
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69115&edit=1
Thread (8 messages)