ID:               28732
 Updated by:       [EMAIL PROTECTED]
 Reported By:      danielc at analysisandsolutions dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         *General Issues
 Operating System: windows 2000
 PHP Version:      4.3.7
 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------

[2004-06-11 01:37:56] 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-10 20:18:25] danielc at analysisandsolutions dot com

Just to be 100% clear, PHP executes via CGI on the web server.

------------------------------------------------------------------------

[2004-06-10 20:16:21] 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


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=28732&edit=1

Reply via email to