Req #33937 [Opn->Wfx]: mail() uses popen() instead of execv*()
| From: | cmb@php.net | Date: | Tue, 06 Jul 2021 15:29:06 +0000 |
| Subject: | Req #33937 [Opn->Wfx]: mail() uses popen() instead of execv*() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-234831@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=33937&edit=1
ID: 33937
Updated by: cmb@php.net
Reported by: chaton at skreel dot org
Summary: mail() uses popen() instead of execv*()
-Status: Open
+Status: Wont fix
Type: Feature/Change Request
Package: Mail related
Operating System: *
PHP Version: *
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Given the small amount of feedback on this feature request over
the long time, I'm closing as WONTFIX.
If anybody is still looking for this feature, please pursue the
RFC process[1].
[1] <https://wiki.php.net/rfc/howto>
Previous Comments:
------------------------------------------------------------------------
[2011-03-17 17:56:36] anrdaemon at freemail dot ru
Proper solution is to not use external executables to handle mail.
Code s in there, see #9308
------------------------------------------------------------------------
[2005-07-31 22:02:07] chaton at skreel dot org
Description:
------------
PHP's mail() function uses popen() instead of execve() to call the sendmail executable. This
was probably done because it saved the parameter parsing, but it makes it impossible to use
PHP's mail() function inside of a chroot() jail unless /bin/sh is copied inside the chroot()-ed
environement.
As more and more Apache installs get chroot()-ed, it would be nice to rewrite the code to properly
use execve().
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=33937&edit=1