Your message dated Sun, 29 Jul 2007 00:03:39 +0200
with message-id <[EMAIL PROTECTED]>
and subject line Bug#406080: lighttpd: Does not cleanup environment upon startup
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
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>');
?>

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.9-chriswallace
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages lighttpd depends on:
ii  libbz2-1.0            1.0.2-7            high-quality block-sorting file co
ii  libc6                 2.3.2.ds1-22sarge4 GNU C Library: Shared libraries an
ii  libldap2              2.1.30-8           OpenLDAP libraries
ii  libpcre3              4.5-1.2sarge1      Perl 5 Compatible Regular Expressi
ii  libssl0.9.7           0.9.7e-3sarge4     SSL shared libraries
ii  lsb-base              3.1-15~bpo.1       Linux Standard Base 3.1 init scrip
ii  mime-support          3.28-1             MIME files 'mime.types' & 'mailcap
ii  zlib1g                1:1.2.2-4.sarge.2  compression library - runtime

-- no debconf information


--- End Message ---
--- Begin Message ---
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

Attachment: pgp8luPqHsdQc.pgp
Description: PGP signature


--- End Message ---

Reply via email to