#50366 [Fbk->Opn]: realpath() doesn't correctly resolve symlink

From: Date: Thu, 03 Dec 2009 05:42:33 +0000
Subject: #50366 [Fbk->Opn]: realpath() doesn't correctly resolve symlink
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-145358@lists.php.net to get a copy of this message
ID: 50366 User updated by: jerico dot dev at gmail dot com Reported By: jerico dot dev at gmail dot com -Status: Feedback +Status: Open Bug Type: Filesystem function related Operating System: Linux PHP Version: 5.2.11 New Comment: Reproduced with php5.2-200912022330 compiled on Ubuntu Jaunty Previous Comments: ------------------------------------------------------------------------ [2009-12-02 22:40:51] jani@php.net Please try using this snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://windows.php.net/snapshots/ ------------------------------------------------------------------------ [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

« previous php.bugs (#145358) next »