|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-02-15 13:34 UTC] moriyoshi@php.net
[2003-02-15 14:02 UTC] moriyoshi@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 21:00:01 2025 UTC |
if copy('file','dest') is called, and the 'file' is a 0-length file, it will fail. This causes pear install PhpDocumentor to fail on windows. To test, create an empty file "emptyfile.php" and a non-empty file "nonemptyfile.php" in the same directory as this script, and run it: <?php var_dump(copy('emptyfile.php','newfile.php')); // bool(false) var_dump(copy('nonemptyfile.php','newfile.php')); //bool(true) ?>