#20423 [NEW]: relative symlink are not correctly created

From: Date: Thu, 14 Nov 2002 10:27:28 +0000
Subject: #20423 [NEW]: relative symlink are not correctly created
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-24873@lists.php.net to get a copy of this message
From: d.roche@lectra.com Operating system: Linux 2.4.x PHP version: 4CVS-2002-11-14 PHP Bug Type: Filesystem function related Bug description: relative symlink are not correctly created try this little script : <script language="php"> chdir("/tmp"); @unlink("/tmp/foo2.txt"); symlink("../foo.txt", "/tmp/foo2.txt"); </script> it create on /tmp the following link : foo2.txt -> /foo.txt while it should have created ( as previous versions does ) foo2.txt -> ../foo.txt looks like relative path are resolved before making the link thus it is no longer possible to create relative links ! my configure line is : ./configure --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --with-config-file-path=/etc --enable-force-cgi-redirect --disable-debug --enable-pic --disable-rpath --enable-inline-optimization --with-bz2 --with-db3 --with-exec-dir=/usr/bin --with-freetype-dir=/usr --with-png-dir=/usr --with-gd --enable-gd-native-ttf --with-ttf --with-gdbm --with-gettext --with-jpeg-dir=/usr --with-openssl --with-png --with-regex=system --with-xml --with-zlib --with-layout=GNU --enable-debugger --enable-ftp --enable-magic-quotes --enable-safe-mode --enable-sockets --enable-sysvsem --enable-sysvshm --enable-discard-path --enable-track-vars --enable-trans-sid --enable-yp --enable-wddx --with-oci8=shared --with-oracle=shared --with-imap=shared --with-imap-ssl --with-kerberos=/usr/kerberos --with-ldap=shared --with-mysql=shared,/usr --enable-shmop --enable-versioning --enable-calendar --enable-dbx --enable-dio --enable-mcal --enable-mbstring --enable-mbstr-enc-trans --with-apxs=/usr/sbin/apxs -- Edit bug report at http://bugs.php.net/?id=20423&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20423&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20423&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20423&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20423&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20423&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20423&r=support Expected behavior: http://bugs.php.net/fix.php?id=20423&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20423&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20423&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20423&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20423&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20423&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20423&r=isapi

« previous php.bugs (#24873) next »