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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: whistl0r+phpbug at googlemail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Mon Nov 04 12:01:28 2024 UTC