php-ssh icon indicating copy to clipboard operation
php-ssh copied to clipboard

getenv('HOME') sometimes returns false

Open jnvsor opened this issue 8 years ago • 0 comments

This causes SshConfigFileConfiguration::processPath to turn ~/folder into /folder and cause an error.

There are others you can fallback onto ($_SERVER['HOME'] for one) and as a final fallback it should assume the dirname(dirname($file)) of the config file is home (A setter for manually setting it would also be nice)

jnvsor avatar Nov 29 '17 18:11 jnvsor