From:             paul at paulbaranowski dot org
Operating system: Redhat Enterprise Linux v3.0
PHP version:      4.3.8
PHP Bug Type:     Directory function related
Bug description:  Cant rename directories across partitions

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 bug report at http://bugs.php.net/?id=30946&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30946&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=30946&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=30946&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=30946&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=30946&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=30946&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=30946&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=30946&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=30946&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30946&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=30946&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=30946&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=30946&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30946&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30946&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30946&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30946&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30946&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30946&r=mysqlcfg

Reply via email to