|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51953 realpath isn't resolving symlinks/junctions
Submitted: 2010-05-31 02:00 UTC Modified: 2010-05-31 02:38 UTC
From: whistl0r+phpbug at googlemail dot com Assigned:
Status: Not a bug Package: Directory function related
PHP Version: 5.2.13 OS: Windows Vista/7
Private report: No CVE-ID: None
 [2010-05-31 02:00 UTC] whistl0r+phpbug at googlemail dot com
This bug is maybe related to

Your in your httpd.conf configured DOCUMENT_ROOT is "C:\Sites\\htdocs".
But this isn't a folder, it's a symlink/junction to the following folder: 

Now you call "C:\Sites\\htdocs\test.php"

Test script:
echo realpath(getcwd());

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-05-31 02:38 UTC]
-Status: Open +Status: Bogus
 [2010-05-31 02:38 UTC]
5.2 does not support symlinks/junction resolutions, use 5.3 if you have to rely on this feature.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 18:01:32 2024 UTC