#39256 [NEW]: rename() destroys images
| From: | krausbn@php.net | Date: | Wed, 25 Oct 2006 14:49:47 +0000 |
| Subject: | #39256 [NEW]: rename() destroys images | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-103977@lists.php.net to get a copy of this message | ||
From: krausbn@php.net
Operating system: MacOS X
PHP version: 5.1.6
PHP Bug Type: Filesystem function related
Bug description: rename() destroys images
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 bug report at http://bugs.php.net/?id=39256&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39256&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39256&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39256&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=39256&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=39256&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=39256&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=39256&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=39256&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=39256&r=support
Expected behavior: http://bugs.php.net/fix.php?id=39256&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=39256&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=39256&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=39256&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39256&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=39256&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=39256&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=39256&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=39256&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=39256&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=39256&r=mysqlcfg