php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4161 PUTENV() don't work, the variable "created" never appears
Submitted: 2000-04-17 10:56 UTC Modified: 2002-09-30 18:50 UTC
From: pm at rednet dot com dot ar Assigned:
Status: Not a bug Package: Other
PHP Version: 3.0.16 OS: Unix and NT
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: pm at rednet dot com dot ar
New email:
PHP Version: OS:

 

 [2000-04-17 10:56 UTC] pm at rednet dot com dot ar
Sorry my english, I'm from Argentine

I'm trying to use PUTENV and GETENV to trace some actions from users.
I tested with the example from documentation

Example 1. Setting an Environment Variable

putenv("UNIQID=$uniqid");

Then on other page I used

echo getenv("UNIQID");
phpinfo();

And the variable created before never appear

I test with php_track_vars, ON and OFF with <?php_track_vars?>, and the result is the same.
I tested this on BSD and IRIX with apache and on NT with IIS4

Pablo Murillo
pm@rednet.com.ar
======================
RED NET ARGENTINA
Internet Solutions
======================
Paraguay 419 Piso 2 Of.5
(C1057AAC) - Capital
Buenos Aires - Argentina
Tel & Fax:(011)4315-3269
http://rednet.com.ar
======================

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-30 18:50 UTC] hholzgra@php.net
putenv() affects the current process only

with cgi the effects are lost on script end,
and even with server modules the chance of
getting a new request served by the same 
process you did use putenv() in before is 
rather low ...
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 11:01:30 2024 UTC