Home
last modified time | relevance | path

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

12345678910>>...15

/php-src/ext/standard/tests/file/
H A Drealpath_basic4.phpt5 $file_path = __DIR__;
7 @symlink("$file_path/realpath_basic4/home", "$file_path/realpath_basic4/link1");
8 @symlink("$file_path/realpath_basic4/link1", "$file_path/realpath_basic4/link2");
14 $file_path = __DIR__;
16 rmdir("$file_path/realpath_basic4/link2");
17 rmdir("$file_path/realpath_basic4/link1");
19 unlink("$file_path/realpath_basic4/link2");
20 unlink("$file_path/realpath_basic4/link1");
22 rmdir("$file_path/realpath_basic4/home/test");
23 rmdir("$file_path/realpath_basic4/home");
[all …]
H A Dis_dir_variation2.phpt14 $file_path = __DIR__;
18 $dirname = $file_path."/is_dir_variation2";
24 symlink($file_path."/is_dir_variation2", $file_path."/is_dir_variation2_symlink");
29 link($file_path."/is_dir_variation2", $file_path."/is_dir_variation2_link"); //Not permitted to cre…
35 $filename = $file_path."/is_dir_variation2.tmp";
41 symlink($file_path."/is_dir_variation2.tmp", $file_path."/is_dir_variation2_symlink.tmp");
46 link($file_path."/is_dir_variation2.tmp", $file_path."/is_dir_variation2_link.tmp");
54 $file_path = __DIR__;
56 unlink($file_path."/is_dir_variation2_symlink");
68 unlink($file_path."/is_dir_variation2.tmp");
[all …]
H A Dcopy_variation7.phpt12 $file_path = __DIR__;
15 $file = $file_path."/copy_variation7.tmp";
20 $symlink = $file_path."/copy_variation7_symlink.tmp";
21 $hardlink = $file_path."/copy_variation7_hardlink.tmp";
36 var_dump( is_link($file_path."/copy_copy_variation7_symlink.tmp") );
53 $file_path = __DIR__;
54 unlink($file_path."/copy_copy_variation7_symlink.tmp");
55 unlink($file_path."/copy_copy_variation7_hardlink.tmp");
56 unlink($file_path."/copy_variation7_symlink.tmp");
57 unlink($file_path."/copy_variation7_hardlink.tmp");
[all …]
H A Dbug65701.phpt7 $file_path = __DIR__ . "/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 = __DIR__ . "/bug65701/";
24 foreach (scandir($file_path) as $file) {
25 if (!is_dir($file_path . $file)) {
26 unlink($file_path . $file);
29 rmdir($file_path);
H A Dfileinode_variation.phpt13 $file_path = __DIR__;
14 $file1 = $file_path."/fileinode1_variation.tmp";
57 fclose( fopen("$file_path/old.txt", "w") );
61 rename("$file_path/old.txt", "$file_path/new.txt");
64 unlink("$file_path/new.txt");
67 mkdir("$file_path/dir");
68 print( fileinode("$file_path/dir") )."\n";
71 mkdir("$file_path/dir/subdir");
76 print( fileinode(b"$file_path/dir") )."\n";
80 rmdir("$file_path/dir/subdir");
[all …]
H A Dfilegroup_variation1.phpt15 $file_path = __DIR__;
16 fclose( fopen($file_path."/filegroup_variation1.tmp", "w") );
20 symlink($file_path."/filegroup_variation1.tmp", $file_path."/filegroup_variation1_symlink.tmp");
21 var_dump( filegroup($file_path."/filegroup_variation1_symlink.tmp") ); //expected true
25 link($file_path."/filegroup_variation1.tmp", $file_path."/filegroup_variation1_link.tmp");
26 var_dump( filegroup($file_path."/filegroup_variation1_link.tmp") ); // expected: true
33 $file_path = __DIR__;
34 unlink($file_path."/filegroup_variation1_symlink.tmp");
35 unlink($file_path."/filegroup_variation1_link.tmp");
36 unlink($file_path."/filegroup_variation1.tmp");
H A Dfileinode_variation1.phpt15 $file_path = __DIR__;
16 fclose( fopen($file_path."/fileinode_variation1.tmp", "w") );
20 symlink($file_path."/fileinode_variation1.tmp", $file_path."/fileinode_variation1_symlink.tmp");
21 var_dump( fileinode($file_path."/fileinode_variation1_symlink.tmp") ); //expected true
25 link($file_path."/fileinode_variation1.tmp", $file_path."/fileinode_variation1_link.tmp");
26 var_dump( fileinode($file_path."/fileinode_variation1_link.tmp") ); // expected: true
33 $file_path = __DIR__;
34 unlink($file_path."/fileinode_variation1_symlink.tmp");
35 unlink($file_path."/fileinode_variation1_link.tmp");
36 unlink($file_path."/fileinode_variation1.tmp");
H A Dfileowner_variation1.phpt16 $file_path = __DIR__;
17 fclose( fopen($file_path."/fileowner_variation1.tmp", "w") );
21 symlink($file_path."/fileowner_variation1.tmp", $file_path."/fileowner_variation1_symlink.tmp");
22 var_dump( fileowner($file_path."/fileowner_variation1_symlink.tmp") ); //expected true
26 link($file_path."/fileowner_variation1.tmp", $file_path."/fileowner_variation1_link.tmp");
27 var_dump( fileowner($file_path."/fileowner_variation1_link.tmp") ); // expected: true
34 $file_path = __DIR__;
35 unlink($file_path."/fileowner_variation1_symlink.tmp");
36 unlink($file_path."/fileowner_variation1_link.tmp");
37 unlink($file_path."/fileowner_variation1.tmp");
H A Dfileperms_variation1.phpt16 $file_path = __DIR__;
17 fclose( fopen($file_path."/fileperms_variation1.tmp", "w") );
21 symlink($file_path."/fileperms_variation1.tmp", $file_path."/fileperms_variation1_symlink.tmp");
22 var_dump( fileperms($file_path."/fileperms_variation1_symlink.tmp") ); //expected true
26 link($file_path."/fileperms_variation1.tmp", $file_path."/fileperms_variation1_link.tmp");
27 var_dump( fileperms($file_path."/fileperms_variation1_link.tmp") ); // expected: true
34 $file_path = __DIR__;
35 unlink($file_path."/fileperms_variation1_symlink.tmp");
36 unlink($file_path."/fileperms_variation1_link.tmp");
37 unlink($file_path."/fileperms_variation1.tmp");
H A Dis_file_variation2.phpt13 $file_path = __DIR__;
14 fclose( fopen($file_path."/is_file_variation2.tmp", "w") );
18 symlink($file_path."/is_file_variation2.tmp", $file_path."/is_file_variation2_symlink.tmp");
19 var_dump( is_file($file_path."/is_file_variation2_symlink.tmp") ); //expected true
23 link($file_path."/is_file_variation2.tmp", $file_path."/is_file_variation2_link.tmp");
24 var_dump( is_file($file_path."/is_file_variation2_link.tmp") ); // expected: true
31 $file_path = __DIR__;
32 unlink($file_path."/is_file_variation2_symlink.tmp");
33 unlink($file_path."/is_file_variation2_link.tmp");
34 unlink($file_path."/is_file_variation2.tmp");
H A Ddisk_total_space_variation.phpt7 $file_path = __DIR__;
19 mkdir($file_path.$dir);
23 $file_path.$dir,
24 $file_path."/.".$dir,
27 $file_path."".$dir."/",
28 $file_path."/.".$dir."/",
31 $file_path.$dir."//",
32 $file_path."/.".$dir."//",
33 $file_path."/./".$dir."//",
36 $file_path.$dir.chr(0),
[all …]
H A Drename_variation4.phpt12 $file_path = __DIR__;
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 = __DIR__;
[all …]
H A Drename_variation2-win32.phpt13 $file_path = __DIR__;
14 mkdir("$file_path/rename_variation2-win32_dir");
18 $fp = fopen($file_path."/rename_variation2-win32.tmp", "w");
22 var_dump( rename($file_path."/rename_variation2-win32.tmp", $file_path."/12346") );
25 var_dump( file_exists($file_path."/rename_variation2-win32.tmp" ) ); // expecting false
26 var_dump( file_exists($file_path."/12346" ) ); // expecting true
28 unlink($file_path."/12346");
31 var_dump( rename($file_path."/rename_variation2-win32_dir/", $file_path."/12346") );
35 var_dump( file_exists($file_path."/12346" ) ); // expecting true
41 $file_path = __DIR__;
[all …]
H A Dfile_get_contents_error.phpt10 $file_path = __DIR__;
11 include($file_path."/file.inc");
16 create_files($file_path, 1, "text", 0755, 100, "w", "file_get_contents_error", 1, "byte");
17 $file_handle = fopen($file_path."/file_put_contents_error.tmp", "w");
26 delete_files($file_path, 1, "file_get_contents_error", 1);
28 unlink($file_path."/file_put_contents_error.tmp");
34 $file_path = __DIR__;
35 if(file_exists($file_path."/file_put_contents_error.tmp")) {
36 unlink($file_path."/file_put_contents_error.tmp");
38 if(file_exists($file_path."/file_put_contents1.tmp")) {
[all …]
H A Ddisk_free_space_variation.phpt5 $file_path = __DIR__;
17 mkdir($file_path.$dir);
21 $file_path.$dir,
22 $file_path."/.".$dir,
25 $file_path."".$dir."/",
26 $file_path."/.".$dir."/",
29 $file_path.$dir."//",
30 $file_path."/.".$dir."//",
31 $file_path."/./".$dir."//",
34 $file_path.$dir.chr(0),
[all …]
H A Dis_writable_variation2.phpt17 $file_path = __DIR__;
18 mkdir("$file_path/is_writable_variation2");
40 "$file_path/is_writable_variation21.tmp",
41 "$file_path/is_writable_variation22.tmp",
42 "$file_path/is_writable_variation23.tmp",
43 "$file_path/is_writable_variation24.tmp",
44 "$file_path/is_writable_variation25.tmp",
45 "$file_path/is_writable_variation26.tmp",
46 "$file_path/is_writable_variation27.tmp",
47 "$file_path/is_writable_variation28.tmp",
[all …]
H A Dis_executable_variation2.phpt17 $file_path = __DIR__;
18 mkdir("$file_path/is_executable_variation2");
39 "$file_path/is_executable_variation21.tmp",
40 "$file_path/is_executable_variation22.tmp",
41 "$file_path/is_executable_variation23.tmp",
42 "$file_path/is_executable_variation24.tmp",
43 "$file_path/is_executable_variation25.tmp",
44 "$file_path/is_executable_variation26.tmp",
45 "$file_path/is_executable_variation27.tmp",
46 "$file_path/is_executable_variation28.tmp",
[all …]
H A Dis_readable_variation2.phpt17 $file_path = __DIR__;
18 mkdir("$file_path/is_readable_variation2");
39 "$file_path/is_readable_variation21.tmp",
40 "$file_path/is_readable_variation22.tmp",
41 "$file_path/is_readable_variation23.tmp",
42 "$file_path/is_readable_variation24.tmp",
43 "$file_path/is_readable_variation25.tmp",
44 "$file_path/is_readable_variation26.tmp",
45 "$file_path/is_readable_variation27.tmp",
46 "$file_path/is_readable_variation28.tmp",
[all …]
H A Dfilesize_variation2-win32.phpt11 $file_path = __DIR__;
12 require($file_path."/file.inc");
18 mkdir( $file_path."/filesize_variation2");
19 var_dump( filesize( $file_path."/filesize_variation2"));
24 var_dump( filesize( $file_path."/filesize_variation2"));
28 delete_files($file_path."/filesize_variation2", 1, "filesize_variation", 2);
31 mkdir( $file_path."/filesize_variation2/filesize_variation2_sub");
44 var_dump( filesize( $file_path."/filesize_variation2"));
57 $file_path = __DIR__;
59 rmdir($file_path."/filesize_variation2/filesize_variation2_sub");
[all …]
H A Dfilesize_variation2.phpt11 $file_path = __DIR__;
12 require($file_path."/file.inc");
18 mkdir( $file_path."/filesize_variation2");
19 var_dump( filesize( $file_path."/filesize_variation2"));
24 var_dump( filesize( $file_path."/filesize_variation2"));
28 delete_files($file_path."/filesize_variation2", 1, "filesize_variation");
31 mkdir( $file_path."/filesize_variation2/filesize_variation2_sub");
44 var_dump( filesize( $file_path."/filesize_variation2"));
57 $file_path = __DIR__;
59 rmdir($file_path."/filesize_variation2/filesize_variation2_sub");
[all …]
H A Dfile_get_contents_basic.phpt8 $file_path = __DIR__;
9 include($file_path."/file.inc");
16 create_files($file_path, 1, "text", 0755, 100, "w", "file_get_contents_basic", 1, "byte");
17 var_dump( file_get_contents($file_path."/file_get_contents_basic1.tmp") );
18 delete_files($file_path, 1, "file_get_contents_basic", 1);
22 create_files($file_path, 1, "empty", 0755, 100, "w", "file_get_contents_basic", 1, "byte");
23 var_dump( file_get_contents($file_path."/file_get_contents_basic1.tmp") );
29 $file_path = __DIR__;
30 include($file_path."/file.inc");
31 delete_files($file_path, 1);
H A Ddisk_total_space_basic.phpt7 $file_path = __DIR__;
10 var_dump( disk_total_space($file_path) );
15 mkdir($file_path.$dir);
16 var_dump( disk_total_space($file_path.$dir) );
17 $fh = fopen($file_path.$dir."/disk_total_space.tmp", "w");
23 var_dump( disk_total_space($file_path.$dir) );
29 $file_path = __DIR__;
30 unlink($file_path."/disk_total_space/disk_total_space.tmp");
31 rmdir($file_path."/disk_total_space");
H A Dglob_variation2.phpt5 $file_path = __DIR__;
11 mkdir("$file_path/$dir_name");
14 $fp = fopen("$file_path/$dir_name/file.text", "w");
19 chdir("$file_path/$dir_name");
23 chdir("$file_path");
31 $file_path = __DIR__;
32 unlink("$file_path/glob_test/file.text");
33 rmdir("$file_path/glob_test/");
H A Dfile_get_contents_file_put_contents_basic.phpt6 $file_path = __DIR__;
7 include($file_path."/file.inc");
15 file_put_contents( $file_path.$file_name, $text_buffer );
17 var_dump( file_get_contents($file_path.$file_name) );
22 file_put_contents( $file_path.$file_name, "");
23 var_dump( file_get_contents( $file_path.$file_name ) );
29 $file_path = __DIR__;
30 unlink($file_path."/file_put_contents_basic.tmp");
31 unlink($file_path."/file_put_contents_basic1.tmp");
H A Dis_file_variation1.phpt8 $file_path = __DIR__;
11 $filename = $file_path."/is_file_variation1.tmp";
19 $file_handle = fopen( $file_path."/is_file_variation1.tmp", "r");
22 var_dump( is_file($file_path."/is_file_variation1.tmp") ); // expected true
24 unlink($file_path."/is_file_variation1.tmp");
28 fclose( fopen($file_path."/is_file_variation1.tmp", "w") );
29 var_dump( is_file($file_path."/is_file_variation1.tmp") ); //expected true
31 unlink($file_path."/is_file_variation1.tmp");
34 touch($file_path."/is_file_variation1.tmp");
35 var_dump( is_file($file_path."/is_file_variation1.tmp") ); // expected true
[all …]

Completed in 19 milliseconds

12345678910>>...15