#21095 [Opn->]: symlink and chroot

From: Date: Sun, 29 Dec 2002 20:32:40 +0000
Subject: #21095 [Opn->]: symlink and chroot
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-28699@lists.php.net to get a copy of this message
ID: 21095 Updated by: iliaa@php.net Reported By: busia@tiscali.it -Status: Open +Status: Won\'t fix Bug Type: Filesystem function related Operating System: Redhat 7.2 PHP Version: 4.3.0RC3 New Comment: Because in thread safe mode PHP does not actually change directories making a symlink on relative paths will often fail if any chdir() calls are found inside the script. Therefor when ZTS is used symlinks are always done on FULL paths. Previous Comments: ------------------------------------------------------------------------ [2002-12-20 06:10:19] busia@tiscali.it Yes I use php with thread safe enabled, I'm using Apache 2.0.43 with worker MPM. ------------------------------------------------------------------------ [2002-12-19 18:43:09] iliaa@php.net Are you using PHP with thread safety enabled? ------------------------------------------------------------------------ [2002-12-19 06:11:44] busia@tiscali.it if I use <? chdir("/home/foo_alfa"); symlinks("../foo", "bar"); ?> the symlink that is created in /home/foo_alfa is bar -> /home/foo ant not bar -> ../foo how expected this is a problem because I use chroot jails for ftp and the file became not accessible. Andrea Busia ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21095&edit=1

« previous php.bugs (#28699) next »