php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49476 $_ENV does not work
Submitted: 2009-09-05 23:52 UTC Modified: 2013-02-18 00:33 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: elmu at gmx dot de Assigned:
Status: No Feedback Package: Variables related
PHP Version: 6SVN-2009-09-05 (snap) OS: Windows
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2009-09-05 23:52 UTC] elmu at gmx dot de
Description:
------------
$_ENV["OS"]
$_ENV["PROCESSOR_IDENTIFIER"]
$_ENV["COMPUTERNAME"]

are empty on PHP 6 VC6 while the same code works fine on PHP 5,

while
$_ENV["SERVER_SIGNATURE"]
works on both PHP 5 and PHP 6.

On the other hand the missing values appear correctly in phpinfo()

Strange.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-09-05 23:57 UTC] elmu at gmx dot de
Sorry 
I wanted to say $_SERVER["SERVER_SIGNATURE"] works on both.
 [2009-09-06 19:48 UTC] elmu at gmx dot de
Note:
It seems that the current PHP 6 has not yet been tested on Windows.
All the bugs I found are related to filesystem or operation system.
 [2009-09-06 20:31 UTC] pajoye@php.net
ENV works just fine here. But there are changes about input encoding that have not been test at all. And all in all, the current status of php6 is not tested at all, unstable and needs heavy work to get to something usable (usable != stable).
 [2009-09-22 21:03 UTC] elmue at gmx dot de
I repeated the test on build from 22 sep 2009 and the result is the same

$_ENV["OS"]
$_ENV["PROCESSOR_IDENTIFIER"]
$_ENV["COMPUTERNAME"]

are empty.

Even a 
print_r($_ENV)
shows:
Array ( )

This cannot be caused by input encoding because these variables have no special characters in them.

On PHP5 the same array has plenty content!
 [2009-09-22 21:19 UTC] elmue at gmx dot de
Hello

In version 22 sep 2009 it is even worse:
print_r($_FILES);

throws:
Failed to decode _FILES array

The last time I tested on PHP6 this did work.
Now its broken.
 [2010-06-08 15:32 UTC] tony2001@php.net
-Status: Open +Status: Feedback
 [2010-06-08 15:32 UTC] tony2001@php.net
Please try using this snapshot:

  http://snaps.php.net/php-trunk-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2013-02-18 00:33 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Dec 08 13:03:41 2021 UTC