note 80897 deleted from function.rename by cmb
| From: | cmb@php.net | Date: | Sun, 22 Dec 2019 09:06:12 +0000 |
| Subject: | note 80897 deleted from function.rename by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-213590@lists.php.net to get a copy of this message | ||
Note Submitter: treshugart at gmail dot com
----
This might be a similar problem to what happened to:
jmalinsky at gmail dot com
10-Dec-2005 08:41
Apparently rename() will fail on filenames that are too large and emit an E_WARNING.
I was using rename() 'batch-move' a bunch of images. These files were lost in translation;
in other words: deleted. One file, however, was moved but the filename was truncated. Weird. Why one
or two files while the rest were deleted. This was being attempted on a Windows box.
I hope this helps anyone. If anyone has an explanation please feel free to email me. But if
you're one of those idiots who *thinks* they're better than everyone and you *think* you
know everything, don't bother.