#33937 [Opn]: mail() uses popen() instead of execv*()
| From: | chaton at skreel dot org | Date: | Sun, 31 Jul 2005 20:03:18 +0000 |
| Subject: | #33937 [Opn]: mail() uses popen() instead of execv*() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-82737@lists.php.net to get a copy of this message | ||
ID: 33937
User updated by: chaton at skreel dot org
Reported By: chaton at skreel dot org
Status: Open
Bug Type: Feature/Change Request
Operating System: Unix
-PHP Version: 4.4.0
+PHP Version: any
New Comment:
actually the same behaviour exists in 5.x.x
Previous Comments:
------------------------------------------------------------------------
[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 http://bugs.php.net/?id=33937&edit=1