ID:               41754
 Updated by:       [EMAIL PROTECTED]
 Reported By:      nikhil dot gupta at in dot ibm dot com
-Status:           Open
+Status:           Closed
 Bug Type:         Documentation problem
 Operating System: Windows
 PHP Version:      5CVS-2007-06-21 (snap)
 New Comment:

This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation
better.




Previous Comments:
------------------------------------------------------------------------

[2007-06-21 08:06:29] nikhil dot gupta at in dot ibm dot com

Description:
------------
When copy()  function is used to make a copy of an empty file on
Windows, it returns "true".But according to the documentation : 

"Note: Windows compatibility: If you copy a file with no size, copy()
will return FALSE, but the file will be correctly copied."

but it outputs true on Windows as well as Linux on both php5 and php6.
This behaviour is contradictory to that mentioned in documentation. It
may require change in documentation.




Reproduce code:
---------------
<?php
$file_handle = fopen("temp.txt", "w");
fclose($file_handle);
var_dump(copy("temp.txt", "tempcopy.txt"));
?>

Expected result:
----------------
bool(false)

Actual result:
--------------
bool(true)


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=41754&edit=1

Reply via email to