php.net |  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
Description:
------------
This bug is maybe related to http://bugs.php.net/bug.php?id=51952

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

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

Test script:
---------------
<?php
echo realpath(getcwd());


Expected result:
----------------
C:\Foo

Actual result:
--------------
C:\Sites\example.org\htdocs

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-05-31 02:38 UTC] pajoye@php.net
-Status: Open +Status: Bogus
 [2010-05-31 02:38 UTC] pajoye@php.net
5.2 does not support symlinks/junction resolutions, use 5.3 if you have to rely on this feature.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat Nov 28 09:01:23 2020 UTC