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
 [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: Wed Oct 30 22:01:28 2024 UTC