From:             chaton at skreel dot org
Operating system: Unix
PHP version:      4.4.0
PHP Bug Type:     Feature/Change Request
Bug description:  mail() uses popen() instead of execv*()

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 bug report at http://bugs.php.net/?id=33937&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=33937&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=33937&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=33937&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=33937&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=33937&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=33937&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=33937&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=33937&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=33937&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=33937&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=33937&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=33937&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=33937&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=33937&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=33937&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=33937&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=33937&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=33937&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=33937&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=33937&r=mysqlcfg

Reply via email to