Lines Matching refs:copy

2 Test copy() function: usage variations - destination file names(empty string, nulls & bools)
13 /* Prototype: bool copy ( string $source, string $dest );
14 Description: Makes a copy of the file source to dest.
18 /* Test copy() function: In creation of destination file names with empty string, nulls & bools
22 echo "*** Test copy() function: destination file names with empty string, nulls & bools ***\n";
42 echo "Size of the source file before copy operation => ";
46 echo "\n-- Now applying copy() on source file to create copies --";
52 echo "Existence of destination file before copy => ";
56 var_dump( copy($src_file_name, $dest_file_name) );
88 *** Test copy() function: destination file names with empty string, nulls & bools ***
89 Size of the source file before copy operation => int(1500)
91 -- Now applying copy() on source file to create copies --
93 Existence of destination file before copy => bool(true)
95 Warning: copy(): The second argument to copy() function cannot be a directory in %s on line %d
105 Existence of destination file before copy => bool(true)
107 Warning: copy(): The second argument to copy() function cannot be a directory in %s on line %d
117 Existence of destination file before copy =>
121 Warning: copy() expects parameter 2 to be a valid path, string given in %s on line %d
135 Existence of destination file before copy => bool(true)
137 Warning: copy(): The second argument to copy() function cannot be a directory in %s on line %d
147 Existence of destination file before copy => bool(true)
149 Warning: copy(): The second argument to copy() function cannot be a directory in %s on line %d
159 Existence of destination file before copy => bool(false)
167 Existence of destination file before copy => bool(false)