#50366 [Opn->Fbk]: realpath() doesn't correctly resolve symlink
| From: | jani@php.net | Date: | Wed, 02 Dec 2009 22:40:51 +0000 |
| Subject: | #50366 [Opn->Fbk]: realpath() doesn't correctly resolve symlink | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-145351@lists.php.net to get a copy of this message | ||
ID: 50366
Updated by: jani@php.net
Reported By: jerico dot dev at gmail dot com
-Status: Open
+Status: Feedback
-Bug Type: *Directory/Filesystem functions
+Bug Type: Filesystem function related
Operating System: Linux
PHP Version: 5.2.11
New Comment:
Please try using this snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
Previous Comments:
------------------------------------------------------------------------
[2009-12-02 22:07:41] jerico dot dev at gmail dot com
Description:
------------
realpath() doesn't resolve symlinks correctly when followed by /..
Reproduce code:
---------------
echo realpath('/home/user/test/app/lib/symlink/tests/../../..');
where "symlink" points to /home/user/test/something
Expected result:
----------------
/home/user/test/app
Actual result:
--------------
/home/user
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50366&edit=1