note 126467 added to function.copy
| From: | someone at terrasim dot com | Date: | Thu, 30 Sep 2021 18:44:20 +0000 |
| Subject: | note 126467 added to function.copy | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-217018@lists.php.net to get a copy of this message | ||
On Windows, php-7.4.19-Win32-vc15-x64 - copy() corrupted a 6GB zip file. Our only recourse was to
write:
function file_win_copy( $src, $dst ) {
shell_exec( 'COPY "'.$src.'" "'.$dst.'"');
return file_exists($dest);
}
----
Server IP: 45.112.84.4
Probable Submitter: 45.112.85.242 (proxied: 73.79.254.54)
----
Manual Page -- https://php.net/manual/en/function.copy.php
Edit -- https://main.php.net/note/edit/126467
Del: integrated -- https://main.php.net/note/delete/126467/integrated
Del: useless -- https://main.php.net/note/delete/126467/useless
Del: bad code -- https://main.php.net/note/delete/126467/bad+code
Del: spam -- https://main.php.net/note/delete/126467/spam
Del: non-english -- https://main.php.net/note/delete/126467/non-english
Del: in docs -- https://main.php.net/note/delete/126467/in+docs
Del: other reasons-- https://main.php.net/note/delete/126467
Reject -- https://main.php.net/note/reject/126467
Search -- https://main.php.net/manage/user-notes.php