|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-08-10 00:37 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 19:00:01 2025 UTC |
Description: ------------ On Linux, PHP engine doesn't throw any warning message even if the first arg is a dir, whereas on Windows it does. According to PHP doc, copy() function should not work on directories. Reproduce code: --------------- <?php mkdir("temp"); fclose( fopen("temp.txt", "w") ); var_dump( copy("temp", "temp.txt") ); unlink("temp.txt"); rmdir("temp"); ?> Expected result: ---------------- expecting a warning message on Linux Actual result: -------------- bool(false)