From: [EMAIL PROTECTED] Operating system: Debian GNU/Linux PHP version: 4.3.0 PHP Bug Type: Filesystem function related Bug description: rename() - interesting behaviour
it's an interesting thing about the rename() function: the code which doesn't work: <?php $base = "/home/phanatic/temp/"; $from = "users"; $to = "userdata"; rename ($base.$from, $base.$to); ?> and which works (if the script is in the same dir): <?php $from = "users"; $to = "userdata"; rename ("./".$from, "./".$to); ?> error message for the first code: Warning: rename(/home/phanatic/temp/users,/home/phanatic/temp/userdata) [http://www.php.net/function.rename]: No such file or directory in /home/phanatic/temp/test_rename.php on line 8 my configure line: ./configure --with-layout=GNU --with-mysql=shared --with-pgsql=shared --with-gd=shared --with-gd2 --enable-ftp --with-calendar --with-posix -- enable-sockets --enable-cli --enable-cgi --enable-pcntl --with-bz2=shared --with-zlib-dir=/usr/include/ --prefix=/usr --sysconfdir=/etc/php hope i could provide all the infos needed to fix this problem... -- Edit bug report at http://bugs.php.net/?id=21425&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21425&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21425&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21425&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21425&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21425&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21425&r=support Expected behavior: http://bugs.php.net/fix.php?id=21425&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21425&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21425&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21425&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21425&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21425&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21425&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=21425&r=gnused