Lines Matching refs:copy
2 Test copy() function: error conditions
5 /* Prototype: bool copy ( string $source, string $dest );
6 * Description: Makes a copy of the file source to dest.
10 echo "*** Testing copy() function: error conditions --\n";
12 var_dump( copy("/no/file", "file") );
15 var_dump( copy() );
16 var_dump( copy(__FILE__) );
19 var_dump( copy(__FILE__, "file1", "file1") );
24 *** Testing copy() function: error conditions --
26 Warning: copy(/no/file): failed to open stream: No such file or directory in %s on line %d
29 Warning: copy() expects at least 2 parameters, 0 given in %s on line %d
32 Warning: copy() expects at least 2 parameters, 1 given in %s on line %d
35 Warning: copy() expects parameter 3 to be resource, string given in %s on line %d