php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29850 No environment variables
Submitted: 2004-08-26 16:33 UTC Modified: 2004-08-26 18:20 UTC
From: haggeluring at comhem dot se Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.3.8 OS: Slackware 10
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: haggeluring at comhem dot se
New email:
PHP Version: OS:

 

 [2004-08-26 16:33 UTC] haggeluring at comhem dot se
Description:
------------
I am not able to access my systems environment variables from PHP, neither cli or Apache module.

$_ENV just returns an empty array.

PHPInfo is available at http://lvk.mine.nu/phpinfo

php -v
PHP 4.3.8 (cli) (built: Jul 17 2004 11:20:16)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

Reproduce code:
---------------
<?php
print_r($_ENV);
?>

Expected result:
----------------
The code should return an array that contains the environment variables.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-26 18:20 UTC] derick@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.

Your variables_order php.ini setting doesn't contain the E.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Dec 04 22:00:01 2025 UTC