Home
last modified time | relevance | path

Searched refs:file_path (Results 1 – 25 of 364) sorted by relevance

12345678910>>...15

/PHP-7.3/ext/standard/tests/file/
H A Drealpath_basic4.phpt5 $file_path = dirname(__FILE__);
6 @mkdir("$file_path/realpath_basic/home/test", 0777, true);
7 @symlink("$file_path/realpath_basic/home", "$file_path/realpath_basic/link1");
8 @symlink("$file_path/realpath_basic/link1", "$file_path/realpath_basic/link2");
9 echo "1. " . realpath("$file_path/realpath_basic/link2") . "\n";
14 $file_path = dirname(__FILE__);
15 unlink("$file_path/realpath_basic/link2");
16 unlink("$file_path/realpath_basic/link1");
17 rmdir("$file_path/realpath_basic/home/test");
18 rmdir("$file_path/realpath_basic/home");
[all …]
H A Dis_dir_variation2.phpt18 $file_path = dirname(__FILE__);
22 $dirname = $file_path."/is_dir_variation2";
28 symlink($file_path."/is_dir_variation2", $file_path."/is_dir_variation2_symlink");
33 link($file_path."/is_dir_variation2", $file_path."/is_dir_variation2_link"); //Not permitted to cre…
39 $filename = $file_path."/is_dir_variation2.tmp";
45 symlink($file_path."/is_dir_variation2.tmp", $file_path."/is_dir_variation2_symlink.tmp");
50 link($file_path."/is_dir_variation2.tmp", $file_path."/is_dir_variation2_link.tmp");
58 $file_path = dirname(__FILE__);
60 unlink($file_path."/is_dir_variation2_symlink");
72 unlink($file_path."/is_dir_variation2.tmp");
[all …]
H A Drename_variation2-win32.phpt17 $file_path = dirname(__FILE__);
18 mkdir("$file_path/rename_variation2_dir");
22 $fp = fopen($file_path."/rename_variation2.tmp", "w");
26 var_dump( rename($file_path."/rename_variation2.tmp", $file_path."/12345") );
32 unlink($file_path."/12345");
35 var_dump( rename($file_path."/rename_variation2_dir/", $file_path."/12345") );
41 rmdir($file_path."/12345");
47 $file_path = dirname(__FILE__);
48 unlink($file_path."/rename_variation2_link.tmp");
49 unlink($file_path."/rename_variation2.tmp");
[all …]
H A Dcopy_variation7.phpt17 $file_path = dirname(__FILE__);
20 $file = $file_path."/copy_variation7.tmp";
25 $symlink = $file_path."/copy_variation7_symlink.tmp";
26 $hardlink = $file_path."/copy_variation7_hardlink.tmp";
41 var_dump( is_link($file_path."/copy_copy_variation7_symlink.tmp") );
58 $file_path = dirname(__FILE__);
59 unlink($file_path."/copy_copy_variation7_symlink.tmp");
60 unlink($file_path."/copy_copy_variation7_hardlink.tmp");
61 unlink($file_path."/copy_variation7_symlink.tmp");
62 unlink($file_path."/copy_variation7_hardlink.tmp");
[all …]
H A Drename_variation4.phpt12 $file_path = dirname(__FILE__);
18 $fp = fopen($file_path."/rename_variation4.tmp", "w");
21 var_dump( rename($file_path."/rename_variation4.tmp", $file_path."/12345") );
23 var_dump( file_exists($file_path."/rename_variation4.tmp" ) ); // expecting false
24 var_dump( file_exists($file_path."/12345" ) ); // expecting true
26 unlink($file_path."/12345");
28 mkdir($file_path."/rename_variation4_dir");
31 var_dump( rename($file_path."/rename_variation4_dir/", $file_path."/12345") );
34 var_dump( file_exists($file_path."/12345" ) ); // expecting true
40 $file_path = dirname(__FILE__);
[all …]
H A Dfileinode_variation.phpt17 $file_path = dirname(__FILE__);
18 $file1 = $file_path."/fileinode1_variation.tmp";
61 fclose( fopen("$file_path/old.txt", "w") );
65 rename("$file_path/old.txt", "$file_path/new.txt");
68 unlink("$file_path/new.txt");
71 mkdir("$file_path/dir");
72 print( fileinode("$file_path/dir") )."\n";
75 mkdir("$file_path/dir/subdir");
80 print( fileinode(b"$file_path/dir") )."\n";
84 rmdir("$file_path/dir/subdir");
[all …]
H A Dbug65701.phpt7 $file_path = dirname(__FILE__) . "/bug65701/";
9 if (!is_dir($file_path)) {
10 mkdir($file_path);
13 $src = $file_path . '/srcbug65701_file.txt';
14 $dst = tempnam($file_path, 'dstbug65701_file.txt');
23 $file_path = dirname(__FILE__) . "/bug65701/";
24 foreach (scandir($file_path) as $file) {
26 unlink($file_path . $file);
29 rmdir($file_path);
H A Dfilegroup_variation1.phpt18 $file_path = dirname(__FILE__);
19 fclose( fopen($file_path."/filegroup_variation1.tmp", "w") );
23 symlink($file_path."/filegroup_variation1.tmp", $file_path."/filegroup_variation1_symlink.tmp");
24 var_dump( filegroup($file_path."/filegroup_variation1_symlink.tmp") ); //expected true
28 link($file_path."/filegroup_variation1.tmp", $file_path."/filegroup_variation1_link.tmp");
29 var_dump( filegroup($file_path."/filegroup_variation1_link.tmp") ); // expected: true
36 $file_path = dirname(__FILE__);
37 unlink($file_path."/filegroup_variation1_symlink.tmp");
38 unlink($file_path."/filegroup_variation1_link.tmp");
39 unlink($file_path."/filegroup_variation1.tmp");
H A Dfileinode_variation1.phpt19 $file_path = dirname(__FILE__);
20 fclose( fopen($file_path."/fileinode_variation1.tmp", "w") );
24 symlink($file_path."/fileinode_variation1.tmp", $file_path."/fileinode_variation1_symlink.tmp");
25 var_dump( fileinode($file_path."/fileinode_variation1_symlink.tmp") ); //expected true
29 link($file_path."/fileinode_variation1.tmp", $file_path."/fileinode_variation1_link.tmp");
30 var_dump( fileinode($file_path."/fileinode_variation1_link.tmp") ); // expected: true
37 $file_path = dirname(__FILE__);
38 unlink($file_path."/fileinode_variation1_symlink.tmp");
39 unlink($file_path."/fileinode_variation1_link.tmp");
40 unlink($file_path."/fileinode_variation1.tmp");
H A Dfileperms_variation1.phpt18 $file_path = dirname(__FILE__);
19 fclose( fopen($file_path."/fileperms_variation1.tmp", "w") );
23 symlink($file_path."/fileperms_variation1.tmp", $file_path."/fileperms_variation1_symlink.tmp");
24 var_dump( fileperms($file_path."/fileperms_variation1_symlink.tmp") ); //expected true
28 link($file_path."/fileperms_variation1.tmp", $file_path."/fileperms_variation1_link.tmp");
29 var_dump( fileperms($file_path."/fileperms_variation1_link.tmp") ); // expected: true
36 $file_path = dirname(__FILE__);
37 unlink($file_path."/fileperms_variation1_symlink.tmp");
38 unlink($file_path."/fileperms_variation1_link.tmp");
39 unlink($file_path."/fileperms_variation1.tmp");
H A Dis_file_variation2.phpt17 $file_path = dirname(__FILE__);
18 fclose( fopen($file_path."/is_file_variation2.tmp", "w") );
22 symlink($file_path."/is_file_variation2.tmp", $file_path."/is_file_variation2_symlink.tmp");
23 var_dump( is_file($file_path."/is_file_variation2_symlink.tmp") ); //expected true
27 link($file_path."/is_file_variation2.tmp", $file_path."/is_file_variation2_link.tmp");
28 var_dump( is_file($file_path."/is_file_variation2_link.tmp") ); // expected: true
35 $file_path = dirname(__FILE__);
36 unlink($file_path."/is_file_variation2_symlink.tmp");
37 unlink($file_path."/is_file_variation2_link.tmp");
38 unlink($file_path."/is_file_variation2.tmp");
H A Dfileowner_variation1.phpt19 $file_path = dirname(__FILE__);
20 fclose( fopen($file_path."/fileowner_variation1.tmp", "w") );
24 symlink($file_path."/fileowner_variation1.tmp", $file_path."/fileowner_variation1_symlink.tmp");
25 var_dump( fileowner($file_path."/fileowner_variation1_symlink.tmp") ); //expected true
29 link($file_path."/fileowner_variation1.tmp", $file_path."/fileowner_variation1_link.tmp");
30 var_dump( fileowner($file_path."/fileowner_variation1_link.tmp") ); // expected: true
37 $file_path = dirname(__FILE__);
38 unlink($file_path."/fileowner_variation1_symlink.tmp");
39 unlink($file_path."/fileowner_variation1_link.tmp");
40 unlink($file_path."/fileowner_variation1.tmp");
H A Ddisk_total_space_variation.phpt12 $file_path = dirname(__FILE__);
24 mkdir($file_path.$dir);
28 $file_path.$dir,
29 $file_path."/.".$dir,
32 $file_path."".$dir."/",
33 $file_path."/.".$dir."/",
36 $file_path.$dir."//",
37 $file_path."/.".$dir."//",
38 $file_path."/./".$dir."//",
41 $file_path.$dir.chr(0),
[all …]
H A Dfilesize_variation2-win32.phpt16 $file_path = dirname(__FILE__);
17 require($file_path."/file.inc");
23 mkdir( $file_path."/filesize_variation2");
24 var_dump( filesize( $file_path."/filesize_variation2"));
29 var_dump( filesize( $file_path."/filesize_variation2"));
33 delete_files($file_path."/filesize_variation2", 1, "filesize_variation", 2);
36 mkdir( $file_path."/filesize_variation2/filesize_variation2_sub");
49 var_dump( filesize( $file_path."/filesize_variation2"));
62 $file_path = dirname(__FILE__);
64 rmdir($file_path."/filesize_variation2/filesize_variation2_sub");
[all …]
H A Dfilesize_variation2.phpt16 $file_path = dirname(__FILE__);
17 require($file_path."/file.inc");
23 mkdir( $file_path."/filesize_variation2");
24 var_dump( filesize( $file_path."/filesize_variation2"));
29 var_dump( filesize( $file_path."/filesize_variation2"));
33 delete_files($file_path."/filesize_variation2", 1, "filesize_variation");
36 mkdir( $file_path."/filesize_variation2/filesize_variation2_sub");
49 var_dump( filesize( $file_path."/filesize_variation2"));
62 $file_path = dirname(__FILE__);
64 rmdir($file_path."/filesize_variation2/filesize_variation2_sub");
[all …]
H A Dis_executable_variation2.phpt30 $file_path = dirname(__FILE__);
31 mkdir("$file_path/is_executable_variation2");
52 "$file_path/is_executable_variation21.tmp",
53 "$file_path/is_executable_variation22.tmp",
54 "$file_path/is_executable_variation23.tmp",
55 "$file_path/is_executable_variation24.tmp",
56 "$file_path/is_executable_variation25.tmp",
57 "$file_path/is_executable_variation26.tmp",
58 "$file_path/is_executable_variation27.tmp",
59 "$file_path/is_executable_variation28.tmp",
[all …]
H A Dis_readable_variation2.phpt29 $file_path = dirname(__FILE__);
30 mkdir("$file_path/is_readable_variation2");
51 "$file_path/is_readable_variation21.tmp",
52 "$file_path/is_readable_variation22.tmp",
53 "$file_path/is_readable_variation23.tmp",
54 "$file_path/is_readable_variation24.tmp",
55 "$file_path/is_readable_variation25.tmp",
56 "$file_path/is_readable_variation26.tmp",
57 "$file_path/is_readable_variation27.tmp",
58 "$file_path/is_readable_variation28.tmp",
[all …]
H A Ddisk_free_space_variation.phpt12 $file_path = dirname(__FILE__);
24 mkdir($file_path.$dir);
28 $file_path.$dir,
29 $file_path."/.".$dir,
32 $file_path."".$dir."/",
33 $file_path."/.".$dir."/",
36 $file_path.$dir."//",
37 $file_path."/.".$dir."//",
38 $file_path."/./".$dir."//",
41 $file_path.$dir.chr(0),
[all …]
H A Dis_writable_variation2.phpt32 $file_path = dirname(__FILE__);
33 mkdir("$file_path/is_writable_variation2");
55 "$file_path/is_writable_variation21.tmp",
56 "$file_path/is_writable_variation22.tmp",
57 "$file_path/is_writable_variation23.tmp",
58 "$file_path/is_writable_variation24.tmp",
59 "$file_path/is_writable_variation25.tmp",
60 "$file_path/is_writable_variation26.tmp",
61 "$file_path/is_writable_variation27.tmp",
62 "$file_path/is_writable_variation28.tmp",
[all …]
H A Dis_file_error.phpt11 $file_path = dirname(__FILE__);
15 $file_handle = fopen($file_path."/is_file_error.tmp", "w");
16 var_dump( is_file( $file_path."/is_file_error.tmp", $file_path."/is_file_error1.tmp") );
19 var_dump( is_file($file_path."/is_file_error1.tmp") );
30 $file_path = dirname(__FILE__);
31 if(file_exists($file_path."/is_file_error.tmp")) {
32 unlink($file_path."/is_file_error.tmp");
34 if(file_exists($file_path."/is_file_error1.tmp")) {
35 unlink($file_path."/is_file_error1.tmp");
H A Dfile_get_contents_error.phpt14 $file_path = dirname(__FILE__);
15 include($file_path."/file.inc");
25 create_files($file_path, 1, "text", 0755, 100, "w", "file", 1, "byte");
26 $file_handle = fopen($file_path."/file_put_contents_error.tmp", "w");
32 delete_files($file_path, 1);
34 unlink($file_path."/file_put_contents_error.tmp");
40 $file_path = dirname(__FILE__);
41 if(file_exists($file_path."/file_put_contents_error.tmp")) {
42 unlink($file_path."/file_put_contents_error.tmp");
44 if(file_exists($file_path."/file_put_contents1.tmp")) {
[all …]
H A Drename_variation-win32.phpt18 $file_path = dirname(__FILE__);
19 mkdir("$file_path/rename_variation");
24 "$file_path/rename_variation/rename_variation.tmp",
27 "$file_path/rename_variation/rename_variation.tmp/",
30 "$file_path/rename_variation//rename_variation.tmp",
41 $dest_filename = "$file_path/rename_variation2.tmp";
53 rmdir("$file_path/rename_variation");
59 $file_path = dirname(__FILE__);
60 unlink($file_path."/rename_variation_link.tmp");
61 unlink($file_path."/rename_variation.tmp");
[all …]
H A Dis_file_variation1.phpt13 $file_path = dirname(__FILE__);
16 $filename = $file_path."/is_file_variation1.tmp";
24 $file_handle = fopen( $file_path."/is_file_variation1.tmp", "r");
27 var_dump( is_file($file_path."/is_file_variation1.tmp") ); // expected true
29 unlink($file_path."/is_file_variation1.tmp");
33 fclose( fopen($file_path."/is_file_variation1.tmp", "w") );
34 var_dump( is_file($file_path."/is_file_variation1.tmp") ); //expected true
36 unlink($file_path."/is_file_variation1.tmp");
39 touch($file_path."/is_file_variation1.tmp");
40 var_dump( is_file($file_path."/is_file_variation1.tmp") ); // expected true
[all …]
H A Ddisk_total_space_basic.phpt12 $file_path = dirname(__FILE__);
15 var_dump( disk_total_space($file_path) );
20 mkdir($file_path.$dir);
21 var_dump( disk_total_space($file_path.$dir) );
22 $fh = fopen($file_path.$dir."/disk_total_space.tmp", "w");
28 var_dump( disk_total_space($file_path.$dir) );
34 $file_path = dirname(__FILE__);
35 unlink($file_path."/disk_total_space/disk_total_space.tmp");
36 rmdir($file_path."/disk_total_space");
H A Dglob_variation2.phpt9 $file_path = dirname(__FILE__);
15 mkdir("$file_path/$dir_name");
18 $fp = fopen("$file_path/$dir_name/file.text", "w");
23 chdir("$file_path/$dir_name");
27 chdir("$file_path");
35 $file_path = dirname(__FILE__);
36 unlink("$file_path/glob_test/file.text");
37 rmdir("$file_path/glob_test/");

Completed in 21 milliseconds

12345678910>>...15