|  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
Have you experienced this issue?
Rate the importance of this bug to you:

 [2010-08-29 10:18 UTC] resonantmedia at gmail dot com
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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-08-29 14:25 UTC]
-Status: Open +Status: Feedback
 [2010-08-29 14:25 UTC]
Please try using this snapshot:
For Windows:

 [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]
-Status: Open +Status: Feedback
 [2010-08-29 22:55 UTC]
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: Mon Mar 04 05:01:30 2024 UTC