php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28732 temp and tmp environment vars not registered via web
Submitted: 2004-06-10 20:16 UTC Modified: 2004-06-11 12:15 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: danielc at analysisandsolutions dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.3.7 OS: windows 2000
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: danielc at analysisandsolutions dot com
New email:
PHP Version: OS:

 

 [2004-06-10 20:16 UTC] danielc at analysisandsolutions dot com
Description:
------------
Neither the TEMP or TMP environment variables show up via $_ENV, $_SERVER, getenv() or phpinfo() when accessing scripts via a webserver (Apache 1.3.28).  They're available when executing scripts via the command line (both CGI and CLI).

FYI:
   C:\PROGRA~1>echo %temp%
   C:\TEMP

   C:\PROGRA~1>echo %tmp%
   C:\TEMP

Reproduce code:
---------------
<?php
echo 'TEMP: ' . getenv('TEMP') . "\n";
echo 'temp: ' . getenv('temp') . "\n";
echo 'TMP: ' . getenv('TMP') . "\n";
echo 'tmp: ' . getenv('tmp') . "\n";
?>


Expected result:
----------------
TEMP: C:\TEMP
temp: C:\TEMP
TMP: C:\TEMP
tmp: C:\TEMP

Actual result:
--------------
=== Via web server ===
TEMP: 
temp: 
TMP: 
tmp: 

=== Via command line ===
TEMP: C:\TEMP
temp: C:\TEMP
TMP: C:\TEMP
tmp: C:\TEMP

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-10 20:18 UTC] danielc at analysisandsolutions dot com
Just to be 100% clear, PHP executes via CGI on the web server.
 [2004-06-11 01:37 UTC] D dot Kingma at jool dot nl
Works fine here. Maybe nothing set in your php.ini? 
PHP version: php4-win32-STABLE-200406102030
OS: winXP

Results of reproduction code:
TEMP: C:\WINDOWS\TEMP
temp: C:\WINDOWS\TEMP
TMP: C:\WINDOWS\TEMP
tmp: C:\WINDOWS\TEMP
 [2004-06-11 12:15 UTC] sniper@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

Fix your settings, no bug here.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Sep 11 07:01:28 2024 UTC