/PHP-7.3/tests/security/ |
H A D | open_basedir_copy.phpt | 8 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 D | open_basedir_copy_variation1.phpt | 8 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-7.3/ext/standard/tests/file/ |
H A D | copy_variation11.phpt | 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 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"; 53 *** Test copy() function: Trying to create a copy of source file as a dir *** 54 Size of source before copy operation => int(300) 55 Size of destination before copy operation => int(%d) [all …]
|
H A D | copy_variation14.phpt | 2 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 36 *** Test copy() function: Trying to create a copy of non-existing source in existing destination *** 37 Warning: copy(%s): %s 41 *** Test copy() function: Trying to create copy of an existing source in non-existing destination *… [all …]
|
H A D | copy_error.phpt | 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 -- 29 Warning: copy() expects at least 2 parameters, 0 given in %s on line %d [all …]
|
H A D | copy_variation12-win32.phpt | 2 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) ); 39 *** Test copy() function: Trying to create a copy of an existing dir *** 41 Warning: copy(): The first argument to copy() function cannot be a directory in %s on line %d
|
H A D | copy_variation13.phpt | 2 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) ); 42 *** Test copy() function: Trying to copy dir to file *** 43 *** Testing copy() in copying dir to file *** 45 Warning: copy(): The first argument to copy() function cannot be a directory in %scopy_variation13.…
|
H A D | copy_variation18.phpt | 2 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 => "; 51 *** Test copy() function: stat of file before and after copy *** 53 Comparing the stats of file before and after copy operation => bool(true)
|
H A D | copy_variation12.phpt | 2 Test copy() function: usage variations - dir as source (Bug #42111) 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) ); 39 *** Test copy() function: Trying to create a copy of an existing dir *** 41 Warning: copy(): The first argument to copy() function cannot be a directory in %scopy_variation12.…
|
H A D | copy_variation17.phpt | 2 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) ); 54 *** Test copy() function: With source file names containing wild-card chars *** 59 Warning: copy(%s): %s 63 Warning: copy(%s): %s 67 Warning: copy(%s): %s [all …]
|
H A D | copy_basic.phpt | 2 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"; 44 *** Testing copy() function: to copy file from source to destination -- 48 -- Checking whether the copy of file exists --
|
H A D | copy_variation10.phpt | 2 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) ); 31 *** Test copy(): Trying to create a copy of file with the same source name ***
|
H A D | copy_variation3-win32.phpt | 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) ); 79 Size of the source file before copy operation => int(1500) 81 -- Now applying copy() on source file to create copies -- 85 Destination file name => copy variation3.tmp 98 Warning: copy(%s): %s [all …]
|
H A D | copy_variation4.phpt | 13 /* 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) ); 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 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 => 135 Warning: copy(): The second argument to copy() function cannot be a directory in %s on line %d [all …]
|
H A D | copy_variation15.phpt | 2 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") ); 57 *** Test copy() function: Trying to create a copy of file in a dir which doesn't have write permiss… 58 Warning: copy(%s): %s
|
H A D | copy_variation3.phpt | 2 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) ); 78 Size of the source file before copy operation => int(1500) 80 -- Now applying copy() on source file to create copies -- 84 Destination file name => copy variation3.tmp [all …]
|
H A D | copy_variation7.phpt | 2 Test copy() function: usage variations - links 10 /* Prototype: bool copy ( string $source, string $dest ); 11 Description: Makes a copy of the file source to dest. 15 /* Test copy() function: Trying to create copy of links */ 19 echo "*** Testing copy() with symlink and hardlink ***\n"; 37 echo "-- Now applying copy() on source link to create copies --\n"; 39 var_dump( copy($symlink, $file_path."/copy_copy_variation7_symlink.tmp") ); 47 var_dump( copy($hardlink, $file_path."/copy_copy_variation7_hardlink.tmp") ); 66 *** Testing copy() with symlink and hardlink *** 70 -- Now applying copy() on source link to create copies --
|
H A D | copy_variation9.phpt | 2 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) ); 59 *** Test copy() function: destination with/without write permissions ***
|
/PHP-7.3/Zend/tests/ |
H A D | bug72543.phpt | 11 function change_copy($copy) { 12 $copy['b']['z']['z'] = $copy['b']; 23 $copy = $data['a']; 24 var_dump($copy); 26 change_copy($copy); 27 var_dump($copy); //RECURSION
|
/PHP-7.3/main/streams/ |
H A D | php_stream_glob_wrapper.h | 24 PHPAPI char* _php_glob_stream_get_path(php_stream *stream, int copy, size_t *plen STREAMS_DC); 25 #define php_glob_stream_get_path(stream, copy, plen) _php_glob_stream_get_path((stream), (copy), (p… argument 27 PHPAPI char* _php_glob_stream_get_pattern(php_stream *stream, int copy, size_t *plen STREAMS_DC); 28 #define php_glob_stream_get_pattern(stream, copy, plen) _php_glob_stream_get_pattern((stream), (cop… argument
|
/PHP-7.3/ext/date/tests/ |
H A D | date_time_immutable.phpt | 104 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-7.3/ext/spl/tests/ |
H A D | arrayObject_exchangeArray_basic3.phpt | 15 $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-7.3/ext/gd/tests/ |
H A D | imagecopyresampled_variation1.phpt | 29 $copy = imagecreatetruecolor(5, 5); 30 imagealphablending($copy, false); 31 imagesavealpha($copy, true); 32 imagecopyresampled($copy, $im, 0,0, 0,0, 5,5, 10, 10); 35 $color = imagecolorat($copy, 3, 3); 36 for ($i = 0; $i < imagesx($copy); $i++) { 37 for ($j = 0; $j < imagesy($copy); $j++) { 38 if (imagecolorat($copy, $i, $j) != $color) { 64 imagedestroy($copy);
|
/PHP-7.3/ext/phar/tests/ |
H A D | phar_copy.phpt | 2 Phar: copy() 25 $p->copy('a', 'b'); 29 $p->copy('b', 'c'); 32 copy($fname, $fname2); 33 $p->copy('a', $ename); 47 $p2->copy('notexisting', 'another'); 52 $p2->copy('a', 'b'); 57 $p2->copy('a', 'd'); 60 $p2->copy('d', '.phar/stub.php'); 65 $p2->copy('.phar/stub.php', 'd'); [all …]
|
/PHP-7.3/ext/curl/tests/ |
H A D | curl_copy_handle_basic_006.phpt | 14 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 ***
|