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
