Edit report at http://bugs.php.net/bug.php?id=33937&edit=1

 ID:                 33937
 Comment by:         anrdaemon at freemail dot ru
 Reported by:        chaton at skreel dot org
 Summary:            mail() uses popen() instead of execv*()
 Status:             Open
 Type:               Feature/Change Request
 Package:            Mail related
 Operating System:   *
 PHP Version:        *
 Block user comment: N
 Private report:     N

 New Comment:

Proper solution is to not use external executables to handle mail.

Code s in there, see #9308


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/bug.php?id=33937&edit=1

Reply via email to