On Mon, Jan 08, 2007 at 03:53:36PM +0100, Olaf Mersmann wrote: > Package: lighttpd > Version: 1.4.11-2bpo1 > Severity: normal > > > The LigHTTPd init script does not clean out the process environment. > > I noticed this while debugging a PHP error ('mail()' would fail in a > script but not when run on the CLI). A simple script showed that HOME, > MAIL, TERM etc where all set. A simple way to see this would be the > following PHP script: > > <?php > echo('<html><body><tt>'); > system('env'); > echo('</tt></body></html>'); > ?>
indeed, FWIW this is properly documented in mod_fastcgi documentation, see the 'bin-copy-environment' directive. Cheers, -- ·O· Pierre Habouzit ··O [EMAIL PROTECTED] OOO http://www.madism.org
pgpXiJYodfZqL.pgp
Description: PGP signature