Home
last modified time | relevance | path

Searched refs:file (Results 1 – 25 of 1278) sorted by relevance

12345678910>>...52

/PHP-8.2/ext/standard/tests/file/
H A D001-win32.phpt14 @unlink('test.file');
44 echo "test.file is " . filetype('test.file') . "\n";
46 echo "test.file size is " . filesize('test.file') . "\n";
58 echo "test.file is a regular file\n";
60 echo "test.file is not a regular file\n";
72 unlink('test.file');
87 test.file exists
89 test.file exists
90 test.file is file
92 test.file size is 0
[all …]
H A Dis_executable_basic.phpt12 // include common file test functions
13 require __DIR__.'/file.inc';
17 // create a file
32 // delete the temp file
39 -- Changing mode of file to 0 --
41 -- Changing mode of file to 1 --
43 -- Changing mode of file to 2 --
45 -- Changing mode of file to 3 --
47 -- Changing mode of file to 4 --
49 -- Changing mode of file to 5 --
[all …]
H A Dis_readable_basic-win32-mb.phpt11 // include common file test functions
12 require __DIR__.'/file.inc';
16 // create a file
31 // delete the temp file
38 -- Changing mode of file to 0 --
40 -- Changing mode of file to 1 --
42 -- Changing mode of file to 2 --
44 -- Changing mode of file to 3 --
46 -- Changing mode of file to 4 --
48 -- Changing mode of file to 5 --
[all …]
H A Dis_readable_basic-win32.phpt11 // include common file test functions
12 require __DIR__.'/file.inc';
16 // create a file
31 // delete the temp file
38 -- Changing mode of file to 0 --
40 -- Changing mode of file to 1 --
42 -- Changing mode of file to 2 --
44 -- Changing mode of file to 3 --
46 -- Changing mode of file to 4 --
48 -- Changing mode of file to 5 --
[all …]
H A Dis_readable_basic.phpt12 // include common file test functions
13 require __DIR__.'/file.inc';
17 // create a file
32 // delete the temp file
39 -- Changing mode of file to 0 --
41 -- Changing mode of file to 1 --
43 -- Changing mode of file to 2 --
45 -- Changing mode of file to 3 --
47 -- Changing mode of file to 4 --
49 -- Changing mode of file to 5 --
[all …]
H A Dis_executable_basic-win32-mb.phpt11 require __DIR__.'/file.inc';
15 // create a file
30 // delete the temp file
37 -- Changing mode of file to 0 --
39 -- Changing mode of file to 1 --
41 -- Changing mode of file to 2 --
43 -- Changing mode of file to 3 --
45 -- Changing mode of file to 4 --
47 -- Changing mode of file to 5 --
49 -- Changing mode of file to 6 --
[all …]
H A Dis_executable_basic-win32.phpt11 require __DIR__.'/file.inc';
15 // create a file
30 // delete the temp file
37 -- Changing mode of file to 0 --
39 -- Changing mode of file to 1 --
41 -- Changing mode of file to 2 --
43 -- Changing mode of file to 3 --
45 -- Changing mode of file to 4 --
47 -- Changing mode of file to 5 --
49 -- Changing mode of file to 6 --
[all …]
H A Dunlink_variation8.phpt107 file removed
109 file unlinked
111 file unlinked
113 file removed
115 file unlinked
117 file unlinked
119 file removed
121 file unlinked
143 file removed
149 file removed
[all …]
H A D001.phpt13 @unlink('test.file');
63 echo "test.file is " . filetype('test.file') . "\n";
66 echo "test.file size is " . filesize('test.file') . "\n";
83 echo "test.file is a regular file\n";
85 echo "test.file is not a regular file\n";
107 unlink('test.file');
123 test.file exists
127 test.file exists
133 test.file is file
136 test.file size is 0
[all …]
H A Dcopy_variation2.phpt67 echo "Size of source file => ";
95 Size of source file => int(1500)
102 Size of source file => int(1500)
109 Size of source file => int(1500)
116 Size of source file => int(1500)
123 Size of source file => int(1500)
130 Size of source file => int(1500)
137 Size of source file => int(1500)
144 Size of source file => int(1500)
151 Size of source file => int(1500)
[all …]
H A Dis_writable_basic.phpt9 // include common file test functions
10 require __DIR__.'/file.inc';
14 // create a file
30 // delete the temp file
37 -- Changing mode of file to 0 --
40 -- Changing mode of file to 1 --
43 -- Changing mode of file to 2 --
46 -- Changing mode of file to 3 --
49 -- Changing mode of file to 4 --
52 -- Changing mode of file to 5 --
[all …]
H A Dcopy_variation1.phpt20 "copy.tmp", //regular file name
52 echo "Size of source file => ";
80 Size of source file => int(1500)
87 Size of source file => int(1500)
93 Destination file name => %s/.tmp
94 Size of source file => int(1500)
101 Size of source file => int(1500)
108 Size of source file => int(1500)
114 Destination file name => %s/123
115 Size of source file => int(1500)
[all …]
H A Dcopy_variation2-win32-mb.phpt94 Size of source file => int(1500)
101 Size of source file => int(1500)
108 Size of source file => int(1500)
115 Size of source file => int(1500)
134 Size of source file => int(1500)
141 Size of source file => int(1500)
148 Size of source file => int(1500)
161 Size of source file => int(1500)
168 Size of source file => int(1500)
175 Size of source file => int(1500)
[all …]
H A Dcopy_variation2-win32.phpt94 Size of source file => int(1500)
101 Size of source file => int(1500)
108 Size of source file => int(1500)
115 Size of source file => int(1500)
134 Size of source file => int(1500)
141 Size of source file => int(1500)
148 Size of source file => int(1500)
161 Size of source file => int(1500)
168 Size of source file => int(1500)
175 Size of source file => int(1500)
[all …]
H A Dunlink_variation9-win32.phpt16 $tmpFile = "file.tmp";
57 touch($file);
78 file removed
80 file removed
82 file removed
90 file removed
92 file removed
94 file removed
105 file removed
107 file removed
[all …]
H A Dfread_variation1.phpt6 Read entire file
10 include ("file.inc");
75 // read from file, by giving the file actual size,
111 -- Reading file content less than max. file size, expected : 1000 bytes --
126 -- Reading file content less than max. file size, expected : 1000 bytes --
141 -- Reading file content less than max. file size, expected : 1000 bytes --
156 -- Reading file content less than max. file size, expected : 1000 bytes --
171 -- Reading file content less than max. file size, expected : 1000 bytes --
186 -- Reading file content less than max. file size, expected : 1000 bytes --
201 -- Reading file content less than max. file size, expected : 1000 bytes --
[all …]
H A Dfopen_variation14-win32.phpt23 $files = array("file://$testDir\\$file",
24 "file://$testDir/$file",
25 "file://./$testDir/$file",
26 "file://.\\$testDir\\$file",
27 "file://$absTestDir/$file",
28 "file://$absTestDir\\$file",
29 "file://$unixifiedDir/$file"
35 $files = array("file://../$testDir/$file",
37 "file://$absTestDir/$file",
38 "file://$absTestDir\\$file",
[all …]
H A Dfopen_variation15-win32.phpt26 $files = array("file://$testDir\\$file",
27 "file://$testDir/$file",
28 "file://./$testDir/$file",
29 "file://.\\$testDir\\$file",
30 "file://$absTestDir/$file",
31 "file://$absTestDir\\$file",
32 "file://$unixifiedDir/$file"
38 $files = array("file://../$testDir/$file",
40 "file://$absTestDir/$file",
41 "file://$absTestDir\\$file",
[all …]
H A Dunlink_variation8-win32.phpt16 $tmpFile = "file.tmp";
57 touch($file);
69 unlink($file);
76 file removed
78 file removed
80 file removed
88 file removed
90 file removed
92 file removed
103 file removed
[all …]
H A Dfread_variation2.phpt8 include ("file.inc");
74 // read from file, by giving the file actual size,
112 -- Reading file content less than max. file size, expected : 0 bytes --
131 -- Reading file content less than max. file size, expected : 0 bytes --
150 -- Reading file content less than max. file size, expected : 0 bytes --
169 -- Reading file content less than max. file size, expected : 0 bytes --
188 -- Reading file content less than max. file size, expected : 0 bytes --
207 -- Reading file content less than max. file size, expected : 0 bytes --
226 -- Reading file content less than max. file size, expected : 0 bytes --
245 -- Reading file content less than max. file size, expected : 0 bytes --
[all …]
H A Dsymlink_link_linkinfo_is_link_variation4.phpt5 /* Variation 4 : Create file and a hard link to the file
15 // create temp file
16 $file = fopen($filename, "w");
17 // fill data into file
19 fclose($file);
22 // create hard link to file
51 // write to temp file
52 $file = fopen($filename, "w");
53 fwrite($file, "Hello World");
54 fclose($file);
[all …]
H A Dcopy_variation16.phpt28 echo "- Size of source file => ";
48 echo "Size of source file => ";
79 - Size of source file => int(3500)
83 Size of source file => int(3500)
90 Size of source file => int(3500)
97 Size of source file => int(3500)
104 Size of source file => int(3500)
111 Size of source file => int(3500)
118 Size of source file => int(3500)
125 Size of source file => int(3500)
[all …]
H A Dcopy_variation6.phpt26 echo "Size of source file => ";
56 echo "Size of source file => ";
78 Size of source file => int(0)
85 Size of source file => int(0)
92 Size of source file => int(0)
99 Size of source file => int(0)
106 Size of source file => int(0)
113 Size of source file => int(0)
120 Size of source file => int(0)
127 Size of source file => int(0)
[all …]
/PHP-8.2/ext/hash/tests/
H A Dhash_file_basic1.phpt8 $file = __DIR__ . "hash_file.txt";
9 /* Creating a temporary file file */
10 if (($fp = fopen( $file, "w+")) == FALSE) {
11 echo "Cannot create file ($file)";
15 /* Writing into file */
17 if (is_writable($file)) {
19 echo "Cannot write to file ($file)";
24 // close the file
31 echo "md2: " . hash_file('md2', $file). "\n";
32 echo "md4: " . hash_file('md4', $file). "\n";
[all …]
H A Dhash_hmac_file_basic.phpt9 $file = __DIR__ . "hash_hmac_file.txt";
10 /* Creating a temporary file file */
11 if (($fp = fopen( $file, "w+")) == FALSE) {
12 echo "Cannot create file ($file)";
16 /* Writing into file */
18 if (is_writable($file)) {
20 echo "Cannot write to file ($file)";
33 echo "md2: " . hash_hmac_file('md2', $file, $key) . "\n";
34 echo "md4: " . hash_hmac_file('md4', $file, $key) . "\n";
35 echo "md5: " . hash_hmac_file('md5', $file, $key) . "\n";
[all …]

Completed in 80 milliseconds

12345678910>>...52