ID: 39256 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Bogus +Status: Open Bug Type: Filesystem function related Operating System: MacOS X PHP Version: 5.1.6 New Comment:
Sorry, but haven't you read the stuff in the second paragraph?!! If the rename() function doesn't do the same as copy() + unlink() than it seems obvious that there is a bug in PHP - even it's only on the Mac, right?! If you don't agree with me than just give me a hint why not. Regards Bjoern Previous Comments: ------------------------------------------------------------------------ [2006-10-25 15:01:07] [EMAIL PROTECTED] Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. ------------------------------------------------------------------------ [2006-10-25 14:49:47] [EMAIL PROTECTED] Description: ------------ Before I begin: I'm using MacOS X 10.4.8 with "PHP Version 5.1.6 www.entropy.ch Release 1 (Universal Binary)" perhaps it's related only to this release?! When I use rename() to move an image file from $src to $dest the Finder (Explorer on Windows) tells me that the file is corrupt. If I use copy() + unlink() instead everything works fine. I think this is a only Mac related problem with the file header but I'm not sure with this ... Reproduce code: --------------- rename($src, $dest); vs. copy($src, $dest); unlink($src); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39256&edit=1