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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sam at daemoninc dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 21:01:27 2025 UTC