php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52728 realpath() fails to resolve symbolic links (symlinks) in remote file systems
Submitted: 2010-08-29 10:18 UTC Modified: 2013-02-18 00:34 UTC
From: resonantmedia at gmail dot com Assigned:
Status: No Feedback Package: Directory function related
PHP Version: 5.2.14 OS: Ubuntu LTS 8.04
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: resonantmedia at gmail dot com
New email:
PHP Version: OS:

 

 [2010-08-29 10:18 UTC] resonantmedia at gmail dot com
Description:
------------
php 5.2.4-2ubuntu5.7

Assuming a symbolic link refers to a script and both are on a remote file system:

Calling realpath('./') does not produce the same results as 
realpath(dirname(__FILENAME__)) when the script is being referred to by its 
symlink over NFS.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-08-29 14:25 UTC] pajoye@php.net
-Status: Open +Status: Feedback
 [2010-08-29 14:25 UTC] pajoye@php.net
Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2010-08-29 22:50 UTC] resonantmedia at gmail dot com
-Status: Feedback +Status: Open
 [2010-08-29 22:50 UTC] resonantmedia at gmail dot com
I meant the magic constant __FILE__ (__FILENAME__) was a typo. Is there a 
changelog entry for 5.3 that refers to the issue?
 [2010-08-29 22:55 UTC] pajoye@php.net
-Status: Open +Status: Feedback
 [2010-08-29 22:55 UTC] pajoye@php.net
Please try using 5.3.3 or snapshot, using our sources, not patched version of php.
 [2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 16:01:28 2024 UTC