Bug #55265 [Opn]: function getenv()
| From: | pajoye@php.net | Date: | Tue, 02 Aug 2011 13:41:02 +0000 |
| Subject: | Bug #55265 [Opn]: function getenv() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-162366@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55265&edit=1
ID: 55265
Updated by: pajoye@php.net
Reported by: unasivp at hotmail dot com
Summary: function getenv()
Status: Open
Type: Bug
Package: Program Execution
Operating System: windows XP SP3
PHP Version: 5.3.6
Block user comment: N
Private report: N
New Comment:
It is not necessary exposed. But check phpinfo to see it, also there is no bug in
getenv > bogus.
Previous Comments:
------------------------------------------------------------------------
[2011-08-02 13:31:17] unasivp at hotmail dot com
I found in some website say the function getenv("username") return windows login user
name.
------------------------------------------------------------------------
[2011-07-22 07:38:25] pajoye@php.net
What are you trying to explain? When an environment variable does not exist, NULL
is returned.
------------------------------------------------------------------------
[2011-07-22 07:31:56] unasivp at hotmail dot com
Description:
------------
function getenv() return NULL string.
Test script:
---------------
<?php
echo "[".getenv("username")."]<br>";
?>
Expected result:
----------------
[]
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55265&edit=1