Bug #64322 [Opn->Nab]: $_ENV{"PATH"} does not work
| From: | reeze@php.net | Date: | Thu, 28 Feb 2013 17:31:37 +0000 |
| Subject: | Bug #64322 [Opn->Nab]: $_ENV{"PATH"} does not work | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-177470@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64322&edit=1
ID: 64322
Updated by: reeze@php.net
Reported by: porton at narod dot ru
Summary: $_ENV{"PATH"} does not work
-Status: Open
+Status: Not a bug
Type: Bug
Package: *General Issues
Operating System: Debian Linux
PHP Version: 5.5Git-2013-02-28 (Git)
Block user comment: N
Private report: N
New Comment:
Please make sure you ini setting 'E' for $_ENV
http://www.php.net/manual/en/ini.core.php#ini.variables-order
withouth 'E' $_ENV will not been filled with environment variables
Previous Comments:
------------------------------------------------------------------------
[2013-02-28 14:20:32] porton at narod dot ru
Description:
------------
With Bash:
$ php -r 'echo $_ENV{"PATH"}, "\n";'
PHP Notice: Undefined index: PATH in Command line code on line 1
The variable PATH is of course defined in my Bash.
Version info:
Debian Linux Wheezy
$ php --version
PHP 5.4.4-13 (cli) (built: Feb 19 2013 12:42:38)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
Test script:
---------------
php -r 'echo $_ENV{"PATH"}, "\n";'
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64322&edit=1