I've a Centos Linux 6.5 server. If in the root (/home/wwwuser/) of this server I execute phpinfo.php, I notice that under "environment" PWD is set to /home/wwwuser/test/. I tried to rename that folder in test1, and the PWD was still set to that folder.
From what I read on google, this variable should return the current directory. So why if I execute it in the root it returns a subdirectory, even if it's a non-existing directory?
PHP Version 5.3.3 phpinfo.php code:
<?php // Show all information, defaults to INFO_ALL phpinfo(); ?>