|  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
25 - 24 = ?
Subscribe to this entry?

 [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-2022 The PHP Group
All rights reserved.
Last updated: Sun Aug 14 00:05:44 2022 UTC