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
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:
MUST BE VALID
Solve the problem:
15 - 9 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 21:01:30 2024 UTC