Edit report at https://bugs.php.net/bug.php?id=64322&edit=1

 ID:                 64322
 Updated by:         re...@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

Reply via email to