#43060 [Opn]: Realpath issue with doesn't exist path

From: Date: Sun, 21 Oct 2007 16:29:35 +0000
Subject: #43060 [Opn]: Realpath issue with doesn't exist path
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-118793@lists.php.net to get a copy of this message
ID: 43060 User updated by: julien at duponchelle dot info Reported By: julien at duponchelle dot info Status: Open Bug Type: *General Issues Operating System: Linux PHP Version: 5.2.4 New Comment: My admin say we use suhosin on this server... I think this the source of my problem. Previous Comments: ------------------------------------------------------------------------ [2007-10-21 15:37:35] julien at duponchelle dot info No special settings. ------------------------------------------------------------------------ [2007-10-21 15:28:11] iliaa@php.net Works fine for me in latest CVS, do you have other settings like open_basedir/safe_mode or thread-safety enabled? ------------------------------------------------------------------------ [2007-10-21 13:36:28] julien at duponchelle dot info Improve bug summary ------------------------------------------------------------------------ [2007-10-21 13:31:54] julien at duponchelle dot info Description: ------------ With this script: <?php var_dump(realpath("//../tata/tutu")); ?> On PHP 5.2.3 i got: bool(false) On PHP 5.2.4 i got: string(10) "/tata/tutu" Documentation say "realpath() returns FALSE on failure, e.g. if the file does not exist." ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=43060&edit=1

« previous php.bugs (#118793) next »