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 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: 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

Pull Requests

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: Tue Oct 08 21:01:27 2024 UTC