|  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: t dot mp at laposte dot net
New email:
PHP Version: OS:


 [2004-08-21 09:36 UTC] t dot mp at laposte dot net
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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-21 12:13 UTC]
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 as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Feb 26 19:01:29 2024 UTC