#30946 [Opn->Fbk]: Cant rename directories across partitions

From: Date: Tue, 30 Nov 2004 20:52:39 +0000
Subject: #30946 [Opn->Fbk]: Cant rename directories across partitions
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-69661@lists.php.net to get a copy of this message
ID: 30946 Updated by: tony2001@php.net Reported By: paul at paulbaranowski dot org -Status: Open +Status: Feedback Bug Type: Filesystem function related Operating System: Redhat Enterprise Linux v3.0 PHP Version: 4.3.8 Previous Comments: ------------------------------------------------------------------------ [2004-11-30 21:52:20] tony2001@php.net Please, provide a reproduce code so we can reproduce it ourselves. ------------------------------------------------------------------------ [2004-11-30 21:37:21] paul at paulbaranowski dot org I tried it with that snapshot and the problem is still there. ------------------------------------------------------------------------ [2004-11-30 19:12:59] tony2001@php.net Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip ------------------------------------------------------------------------ [2004-11-30 19:06:57] paul at paulbaranowski dot org Description: ------------ The rename function says that renaming across partitions was fixed in 4.3.3, but it appears that it is broken in 4.3.8. I have three partitions on my system: / /dev/shm /tmp I'm not sure if it matters, but the disk is mirrored with RAID level 1. Trying to rename a directory that resides in "/tmp" to the "/" file system results in: "Warning: rename(<from>, <to>): Is a directory in <script> on line XX." and the <to> directory name is created as an empty file. I moved the <from> directory to the "/" partition and then tried the rename again (using the same PHP code) and everything worked fine. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30946&edit=1

« previous php.bugs (#69661) next »