php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29778 HOME Environment variable pointing to root directory
Submitted: 2004-08-21 09:36 UTC Modified: 2004-08-21 12:13 UTC
From: t dot mp at laposte dot net Assigned:
Status: Not a bug Package: *Directory/Filesystem functions
PHP Version: 5.0.0 OS: Linux/Madrake 10.0
Private report: No CVE-ID: None
 [2004-08-21 09:36 UTC] t dot mp at laposte dot net
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.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-21 12:13 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.

.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Jul 06 23:04:05 2022 UTC