Home
last modified time | relevance | path

Searched refs:copy (Results 1 – 25 of 298) sorted by relevance

12345678910>>...12

/PHP-5.5/tests/security/
H A Dopen_basedir_copy.phpt8 test_open_basedir_before("copy");
10 var_dump(copy("ok.txt", "../bad"));
11 var_dump(copy("ok.txt", "../bad/bad.txt"));
12 var_dump(copy("ok.txt", ".."));
13 var_dump(copy("ok.txt", "../"));
14 var_dump(copy("ok.txt", "/"));
15 var_dump(copy("ok.txt", "../bad/."));
17 var_dump(copy("ok.txt", "./../."));
19 var_dump(copy("ok.txt", "copy.txt"));
20 var_dump(unlink("copy.txt"));
[all …]
H A Dopen_basedir_copy_variation1.phpt8 test_open_basedir_before("copy");
10 var_dump(copy("../bad/bad.txt", "copy.txt"));
11 var_dump(unlink("copy.txt"));
13 test_open_basedir_after("copy");
21 *** Testing open_basedir configuration [copy] ***
28 Warning: copy(): open_basedir restriction in effect. File(../bad/bad.txt) is not within the allowed…
31 Warning: unlink(copy.txt): No such file or directory in %s on line %d
33 *** Finished testing open_basedir configuration [copy] ***
/PHP-5.5/ext/standard/tests/file/
H A Dcopy_variation11.phpt5 /* Prototype: bool copy ( string $source, string $dest );
6 Description: Makes a copy of the file source to dest.
10 /* Test copy(): Trying to copy the file to a destination, where destination is an existing dir */
14 echo "*** Test copy() function: Trying to create a copy of source file as a dir ***\n";
23 echo "Size of source before copy operation => ";
26 echo "Size of destination before copy operation => ";
30 echo "\n-- Now applying copy() operation --\n";
55 *** Test copy() function: Trying to create a copy of source file as a dir ***
56 Size of source before copy operation => int(300)
57 Size of destination before copy operation => int(%d)
[all …]
H A Dcopy_variation14.phpt2 Test copy() function: usage variations - non existing src/dest
5 /* Prototype: bool copy ( string $source, string $dest );
6 Description: Makes a copy of the file source to dest.
10 /* Test copy(): Trying to create a copy of non-existing source in an existing destination
15 echo "*** Test copy() function: Trying to create a copy of non-existing source in existing destinat…
24 echo "\n*** Test copy() function: Trying to create copy of an existing source in non-existing desti…
25 var_dump( copy($file, $file_path."/nodir/copy_nosuchfile.tmp") ); //With non-existing dir path
38 *** Test copy() function: Trying to create a copy of non-existing source in existing destination ***
39 Warning: copy(%s): %s
43 *** Test copy() function: Trying to create copy of an existing source in non-existing destination *…
[all …]
H A Dcopy_error.phpt2 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") );
25 *** Testing copy() function: error conditions --
30 Warning: copy() expects at least 2 parameters, 0 given in %s on line %d
[all …]
H A Dcopy_variation12-win32.phpt2 Test copy() function: usage variations - dir as source
10 /* Prototype: bool copy ( string $source, string $dest );
11 Description: Makes a copy of the file source to dest.
15 /* Test copy(): Trying to create a copy of an existing dir */
19 echo "*** Test copy() function: Trying to create a copy of an existing dir ***\n";
25 var_dump( copy($src_dir, $dest) );
41 *** Test copy() function: Trying to create a copy of an existing dir ***
43 Warning: copy(): The first argument to copy() function cannot be a directory in %s on line %d
H A Dcopy_variation13.phpt2 Test copy() function: usage variations - src as dir and dest as an existing file(Bug #42243)
5 /* Prototype: bool copy ( string $source, string $dest );
6 Description: Makes a copy of the file source to dest.
10 /* Test copy(): Trying to copy dir to an existing file */
12 echo "*** Test copy() function: Trying to copy dir to file ***\n";
19 echo "*** Testing copy() in copying dir to file ***\n";
20 var_dump( copy($dir, $file) );
44 *** Test copy() function: Trying to copy dir to file ***
45 *** Testing copy() in copying dir to file ***
47 Warning: copy(): The first argument to copy() function cannot be a directory in %scopy_variation13.…
H A Dcopy_variation18.phpt2 Test copy() function: usage variations - stat after copy
5 /* Prototype: bool copy ( string $source, string $dest );
6 Description: Makes a copy of the file source to dest.
10 /* Test copy(): checking stat of file before and after after copy operation */
16 echo "*** Test copy() function: stat of file before and after copy ***\n";
30 var_dump( copy($src_file_name, $dest_file_name) );
40 echo "Comparing the stats of file before and after copy operation => ";
53 *** Test copy() function: stat of file before and after copy ***
55 Comparing the stats of file before and after copy operation => bool(true)
H A Dcopy_variation12.phpt2 Test copy() function: usage variations - dir as source (Bug #42111)
11 /* Prototype: bool copy ( string $source, string $dest );
12 Description: Makes a copy of the file source to dest.
16 /* Test copy(): Trying to create a copy of an existing dir */
20 echo "*** Test copy() function: Trying to create a copy of an existing dir ***\n";
26 var_dump( copy($src_dir, $dest) );
42 *** Test copy() function: Trying to create a copy of an existing dir ***
44 Warning: copy(): The first argument to copy() function cannot be a directory in %scopy_variation12.…
H A Dcopy_variation17.phpt2 Test copy() function: usage variations - wildcard chars in source
5 /* Prototype: bool copy ( string $source, string $dest );
6 Description: Makes a copy of the file source to dest.
10 /* Test copy(): Trying to copy the source file which is given with the combination of wild-card cha…
25 $file_path."/copy*17.tmp",
35 var_dump( copy($src_file_name, $dest_file_name) );
56 *** Test copy() function: With source file names containing wild-card chars ***
61 Warning: copy(%s): %s
65 Warning: copy(%s): %s
69 Warning: copy(%s): %s
[all …]
H A Dcopy_basic.phpt2 Test copy() function: basic functionality
5 /* Prototype: bool copy ( string $source, string $dest );
6 * Description: Makes a copy of the file source to dest.
10 echo "*** Testing copy() function: to copy file from source to destination --\n";
18 var_dump( copy(__FILE__, $file_name1) );
19 var_dump( copy($file_name1, $file_name2) );
21 echo "-- Checking whether the copy of file exists --\n";
46 *** Testing copy() function: to copy file from source to destination --
50 -- Checking whether the copy of file exists --
H A Dcopy_variation10.phpt2 Test copy() function: usage variations - identical names
5 /* Prototype: bool copy ( string $source, string $dest );
6 Description: Makes a copy of the file source to dest.
10 /* Test copy(): Try copying source file to desntination file, where destination file name is identi…
14 echo "*** Test copy(): Trying to create a copy of file with the same source name ***\n";
20 var_dump( copy($file, $file) );
33 *** Test copy(): Trying to create a copy of file with the same source name ***
H A Dcopy_variation3-win32.phpt10 /* Prototype: bool copy ( string $source, string $dest );
11 Description: Makes a copy of the file source to dest.
30 "copy variation3.tmp", //file name containing blank space
32 "copy\tvariation3.tmp",
36 echo "Size of the source file before copy operation => ";
48 var_dump( copy($src_file_name, $dest_file_name) );
81 Size of the source file before copy operation => int(1500)
83 -- Now applying copy() on source file to create copies --
87 Destination file name => copy variation3.tmp
100 Warning: copy(%s): %s
[all …]
H A Dcopy_variation4.phpt13 /* Prototype: bool copy ( string $source, string $dest );
14 Description: Makes a copy of the file source to dest.
42 echo "Size of the source file before copy operation => ";
52 echo "Existence of destination file before copy => ";
56 var_dump( copy($src_file_name, $dest_file_name) );
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
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 =>
137 Warning: copy(): The second argument to copy() function cannot be a directory in %s on line %d
[all …]
H A Dcopy_variation15.phpt2 Test copy() function: usage variations - destination dir access perms
19 /* Prototype: bool copy ( string $source, string $dest );
20 Description: Makes a copy of the file source to dest.
24 /* Test copy(): Trying to create a copy of file in a dir which doesn't have write permissions */
28 echo "*** Test copy() function: Trying to create a copy of file in a dir which doesn't have write p…
43 var_dump( copy($file, $dir."/copy_copy_variation15.tmp") );
59 *** Test copy() function: Trying to create a copy of file in a dir which doesn't have write permiss…
60 Warning: copy(%s): %s
H A Dcopy_variation3.phpt2 Test copy() function: usage variations - destination file names(white spaces)
10 /* Prototype: bool copy ( string $source, string $dest );
11 Description: Makes a copy of the file source to dest.
30 "copy variation3.tmp", //file name containing blank space
32 "copy\tvariation3.tmp",
36 echo "Size of the source file before copy operation => ";
48 var_dump( copy($src_file_name, $dest_file_name) );
80 Size of the source file before copy operation => int(1500)
82 -- Now applying copy() on source file to create copies --
86 Destination file name => copy variation3.tmp
[all …]
H A Dcopy_variation7.phpt2 Test copy() function: usage variations - links
11 /* Prototype: bool copy ( string $source, string $dest );
12 Description: Makes a copy of the file source to dest.
16 /* Test copy() function: Trying to create copy of links */
20 echo "*** Testing copy() with symlink and hardlink ***\n";
38 echo "-- Now applying copy() on source link to create copies --\n";
40 var_dump( copy($symlink, $file_path."/copy_copy_variation7_symlink.tmp") );
48 var_dump( copy($hardlink, $file_path."/copy_copy_variation7_hardlink.tmp") );
69 *** Testing copy() with symlink and hardlink ***
73 -- Now applying copy() on source link to create copies --
H A Dcopy_variation9.phpt2 Test copy() function: usage variations - destination file access perms
20 /* Prototype: bool copy ( string $source, string $dest );
21 Description: Makes a copy of the file source to dest.
25 /* Test copy(): Trying to copy source file to destination file with and without write permissions */
29 echo "*** Test copy() function: destination with/without write permissions ***\n";
40 var_dump( copy($src_file_name, $dest_file_name) );
47 var_dump( copy($src_file_name, $dest_file_name) );
60 *** Test copy() function: destination with/without write permissions ***
H A Dcopy_variation5.phpt2 Test copy() function: usage variations - destination file names(case sensitive)
10 /* Prototype: bool copy ( string $source, string $dest );
11 Description: Makes a copy of the file source to dest.
15 /* Test copy() function: Checking case sensitivity in creation of destination file names
19 echo "*** Test copy() function: checking case sensitivity in creation of destination file names ***…
35 echo "Size of the source file before copy operation => ";
39 echo "\n-- Now applying copy() on source file to create copies --";
47 var_dump( copy($src_file_name, $dest_file_name) );
82 *** Test copy() function: checking case sensitivity in creation of destination file names ***
83 Size of the source file before copy operation => int(1500)
[all …]
/PHP-5.5/main/streams/
H A Dphp_stream_glob_wrapper.h26 PHPAPI char* _php_glob_stream_get_path(php_stream *stream, int copy, int *plen STREAMS_DC TSRMLS_DC…
27 #define php_glob_stream_get_path(stream, copy, plen) _php_glob_stream_get_path((stream), (copy), (p… argument
29 PHPAPI char* _php_glob_stream_get_pattern(php_stream *stream, int copy, int *plen STREAMS_DC TSRMLS…
30 #define php_glob_stream_get_pattern(stream, copy, plen) _php_glob_stream_get_pattern((stream), (cop… argument
/PHP-5.5/ext/date/tests/
H A Ddate_time_immutable.phpt104 copy: 2012-12-27 16:24:08 Europe/London
107 copy: 2012-12-29 16:24:08 Europe/London
112 copy: 2012-12-27 16:24:08 Europe/London
115 copy: 2012-12-29 16:24:10 Europe/London
120 copy: 2012-12-27 16:24:08 Europe/London
123 copy: 2012-12-25 16:24:06 Europe/London
128 copy: 2012-12-27 16:24:08 Europe/London
131 copy: 2012-12-28 01:24:08 Asia/Tokyo
134 copy: 2012-12-27 16:24:08 Europe/London
139 copy: 2012-12-27 16:24:08 Europe/London
[all …]
/PHP-5.5/ext/phar/tests/
H A Dphar_copy.phpt2 Phar: copy()
26 $p->copy('a', 'b');
30 $p->copy('b', 'c');
33 copy($fname, $fname2);
34 $p->copy('a', $ename);
48 $p2->copy('notexisting', 'another');
53 $p2->copy('a', 'b');
58 $p2->copy('a', 'd');
61 $p2->copy('d', '.phar/stub.php');
66 $p2->copy('.phar/stub.php', 'd');
[all …]
/PHP-5.5/ext/spl/tests/
H A DarrayObject_exchangeArray_basic3.phpt15 $copy = $ao->exchangeArray($swapIn);
16 $copy['addedToCopy'] = 'added To Copy';
22 var_dump($ao, $original, $swapIn, $copy);
26 unset($original, $ao, $swapIn, $copy);
30 $copy = $ao->exchangeArray();
31 $copy['addedToCopy'] = 'added To Copy';
36 var_dump($ao, $original, $copy);
39 unset($original, $ao, $swapIn, $copy);
43 $copy = $ao->exchangeArray(null);
44 $copy['addedToCopy'] = 'added To Copy';
[all …]
/PHP-5.5/ext/curl/tests/
H A Dcurl_copy_handle_basic_006.phpt14 echo '*** Testing curl copy handle with User Agent ***' . "\n";
24 $copy = curl_copy_handle($ch);
27 var_dump( curl_exec($copy) );
29 …curl_close($ch); // can not close original handle before curl_exec($copy) since it causes char * i…
30 curl_close($copy);
35 *** Testing curl copy handle with User Agent ***
H A Dcurl_copy_handle_basic_001.phpt14 echo '*** Testing curl copy handle with simple GET ***' . "\n";
23 $copy = curl_copy_handle($ch);
26 $curl_content = curl_exec($copy);
27 curl_close($copy);
33 *** Testing curl copy handle with simple GET ***

Completed in 77 milliseconds

12345678910>>...12