From: haggeluring at comhem dot se Operating system: Slackware 10 PHP version: 4.3.8 PHP Bug Type: *General Issues Bug description: No environment variables
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. -- Edit bug report at http://bugs.php.net/?id=29850&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29850&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29850&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29850&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=29850&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29850&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29850&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29850&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29850&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29850&r=support Expected behavior: http://bugs.php.net/fix.php?id=29850&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29850&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29850&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29850&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29850&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29850&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29850&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29850&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29850&r=float
