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) );
86 *** Test copy() function: destination file names with empty string, nulls & bools ***
87 Size of the source file before copy operation => int(1500)
89 -- Now applying copy() on source file to create copies --
91 Existence of destination file before copy => bool(true)
93 Warning: copy(): The second argument to copy() function cannot be a directory in %s on line %d
103 Existence of destination file before copy => bool(true)
105 Warning: copy(): The second argument to copy() function cannot be a directory in %s on line %d
115 Existence of destination file before copy =>
119 Warning: copy() expects parameter 2 to be a valid path, string given in %s on line %d
133 Existence of destination file before copy => bool(true)
135 Warning: copy(): The second argument to copy() function cannot be a directory in %s on line %d
145 Existence of destination file before copy => bool(true)
147 Warning: copy(): The second argument to copy() function cannot be a directory in %s on line %d
157 Existence of destination file before copy => bool(false)
165 Existence of destination file before copy => bool(false)