php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #399 putenv() is outputting "Restoring variable-name" at the end of every document
Submitted: 1998-05-24 05:09 UTC Modified: 1998-05-24 08:10 UTC
From: sam at daemoninc dot com Assigned: rasmus (profile)
Status: Closed Package: Misbehaving function
PHP Version: 3.0 Release Candidate 4 OS: Solaris-2.5.1
Private report: No CVE-ID: None
 [1998-05-24 05:09 UTC] sam at daemoninc dot com
Reproduce with:

    <?
    putenv("PATH=/bin");
    ?>

This script should produce no output, but instead it
produces:
	Restoring 'PATH=/usr/sbin:/usr/bin' 

It's now putting this Restoring line at the end of
every document where I use putenv()

Configure line is: ./configure --with-sybase=/tools1/pkgs/sybase --with-config-file-path=/tools1/pkgs/php-3.0RC4/lib --bindir=/tools1/pkgs/php-3.0RC4/bin


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-05-24 08:10 UTC] rasmus
Fixed.  Stray debug output in functions/basic_functions.c.  You can edit this file and search for
"Restoring" and simply delete that line to fix it yourself.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 03:01:29 2024 UTC