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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jan 02 12:01:29 2025 UTC