|  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: whistl0r+phpbug at googlemail dot com
New email:
PHP Version: OS:


 [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: Wed Jun 12 22:01:30 2024 UTC