#29778 [NEW]: HOME Environment variable pointing to root directory
| From: | t dot mp at laposte dot net | Date: | Sat, 21 Aug 2004 07:36:03 +0000 |
| Subject: | #29778 [NEW]: HOME Environment variable pointing to root directory | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-65021@lists.php.net to get a copy of this message | ||
From: t dot mp at laposte dot net
Operating system: Linux/Madrake 10.0
PHP version: 5.0.0
PHP Bug Type: *Directory/Filesystem functions
Bug description: HOME Environment variable pointing to root directory
Description:
------------
Login with another user than root (e.g postgres).
According to PHP info the HOME environment variable is pointing to /root.
Echo in bash gives the correct HOME directory (/home/postgres).
In relation, all the directories using HOME are wrong (e.g : TMP =
/root/tmp; TMPDIR = /root/tmp).
USER in phpinfo is correct (postgres), but USERNAME is root.
Php.ini seems correct.
--
Edit bug report at http://bugs.php.net/?id=29778&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29778&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29778&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=29778&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29778&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29778&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29778&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29778&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29778&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29778&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29778&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29778&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29778&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29778&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29778&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29778&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29778&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29778&r=float