Home
last modified time | relevance | path

Searched refs:file (Results 26 – 50 of 1866) sorted by relevance

12345678910>>...75

/PHP-7.4/ext/standard/tests/file/
H A Dftruncate_variation1.phpt13 Description: Truncates a file to a given length
16 // include common file related test functions
17 include ("file.inc");
21 /* test ftruncate with file opened in different modes */
35 // create 1 file with some contents
38 // fopen the file using the $file_modes
43 // fopen the file using the $file_modes
47 echo "Error: failed to open file $filename!\n";
51 rewind($file_handle); // file pointer to 0
76 -- Testing ftruncate(): truncate file to size = 0 --
[all …]
H A Dcopy_variation16-win32.phpt33 echo "- Size of source file => ";
53 echo "Size of source file => ";
85 - Size of source file => int(3500)
89 Size of source file => int(3500)
96 Size of source file => int(3500)
103 Size of source file => int(3500)
110 Size of source file => int(3500)
117 Size of source file => int(3500)
124 Size of source file => int(3500)
131 Size of source file => int(3500)
[all …]
H A Dcopy_variation6-win32.phpt31 echo "Size of source file => ";
62 echo "Size of source file => ";
85 Size of source file => int(0)
92 Size of source file => int(0)
93 Size of destination 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 …]
H A Dsymlink_link_linkinfo_is_link_variation4.phpt18 /* Variation 4 : Create file and a hard link to the file
28 // create temp file
29 $file = fopen($filename, "w");
30 // fill data into file
32 fclose($file);
35 // create hard link to file
64 // write to temp file
65 $file = fopen($filename, "w");
66 fwrite($file, "Hello World");
67 fclose($file);
[all …]
H A Dfputcsv_variation1.phpt62 //close the file
68 //delete file
78 -- file opened in r+ --
85 -- file opened in r+b --
99 -- file opened in a+ --
120 -- file opened in w+ --
141 -- file opened in x+ --
162 -- file opened in r+ --
183 -- file opened in a+ --
204 -- file opened in w+ --
[all …]
H A Dftruncate_variation6-win32.phpt13 Description: Truncates a file to a given length
18 // include common file related test functions
19 include ("file.inc");
23 /* test ftruncate with file opened in different modes */
37 // create 1 file with some contents
40 // fopen the file using the $file_modes
45 // fopen the file using the $file_modes
49 echo "Error: failed to open file $filename!\n";
53 rewind($file_handle); // file pointer to 0
56 /* try to truncate it and display the file content */
[all …]
H A Dftruncate_variation6.phpt13 Description: Truncates a file to a given length
18 // include common file related test functions
19 include ("file.inc");
23 /* test ftruncate with file opened in different modes */
37 // create 1 file with some contents
40 // fopen the file using the $file_modes
45 // fopen the file using the $file_modes
49 echo "Error: failed to open file $filename!\n";
53 rewind($file_handle); // file pointer to 0
56 /* try to truncate it and display the file content */
[all …]
H A Dcopy_variation3.phpt28 /* array of destination file names */
35 " ", //blank space as file name
55 echo "Destination file name => ";
59 echo "Size of source file => ";
87 Size of source file => int(1500)
88 Size of destination file => int(1500)
94 Size of source file => int(1500)
95 Size of destination file => int(1500)
101 Size of source file => int(1500)
107 Destination file name =>
[all …]
H A Dftruncate_variation2.phpt13 Description: Truncates a file to a given length
16 // include common file related test functions
17 include ("file.inc");
21 /* test ftruncate with file opened in different modes */
35 // create 1 file with some contents
38 // fopen the file using the $file_modes
43 // fopen the file using the $file_modes
47 echo "Error: failed to open file $filename!\n";
51 rewind($file_handle); // file pointer to 0
76 -- Testing ftruncate() with file opening using r mode --
[all …]
H A Dftruncate_variation2-win32.phpt13 Description: Truncates a file to a given length
16 // include common file related test functions
17 include ("file.inc");
21 /* test ftruncate with file opened in different modes */
35 // create 1 file with some contents
38 // fopen the file using the $file_modes
43 // fopen the file using the $file_modes
47 echo "Error: failed to open file $filename!\n";
51 rewind($file_handle); // file pointer to 0
76 -- Testing ftruncate() with file opening using r mode --
[all …]
H A Dfopen_variation14.phpt13 * Description: Open a file or a URL and return a file pointer
14 * Source code: ext/standard/file.c
23 $file = "fopen_variation14.tmp";
24 $absFile = $absTestDir.'/'.$file;
28 $files = array("file://$testDir/$file",
29 "file://./$testDir/$file",
30 "file://$absTestDir/$file"
36 $files = array("file://../$testDir/$file",
37 "file://$absTestDir/$file",
52 // create the file and test read
[all …]
H A Dfopen_variation15.phpt13 * Description: Open a file or a URL and return a file pointer
14 * Source code: ext/standard/file.c
24 $file = "fopen_variation15.tmp";
25 $absFile = $absTestDir.'/'.$file;
31 $files = array("file://$testDir/$file",
32 "file://./$testDir/$file",
33 "file://$absTestDir/$file"
39 $files = array("file://../$testDir/$file",
40 "file://$absTestDir/$file"
56 // create the file and test read
[all …]
H A Dcopy_variation4.phpt65 echo "Size of source file => ";
96 Destination file name => %s/
97 Size of source file => int(1500)
108 Destination file name => %s/
109 Size of source file => int(1500)
124 Destination file name => %s/�
126 Size of destination file =>
138 Destination file name => %s/
150 Destination file name => %s/
160 Destination file name => %s/1
[all …]
H A Dfputcsv_variation6.phpt65 //close the file
71 //delete file
81 -- file opened in r+ --
88 -- file opened in r+b --
102 -- file opened in a+ --
123 -- file opened in w+ --
144 -- file opened in x+ --
165 -- file opened in r+ --
186 -- file opened in a+ --
207 -- file opened in w+ --
[all …]
H A Dfputcsv_variation7.phpt65 //close the file
71 //delete file
81 -- file opened in r+ --
88 -- file opened in r+b --
102 -- file opened in a+ --
123 -- file opened in w+ --
144 -- file opened in x+ --
165 -- file opened in r+ --
186 -- file opened in a+ --
207 -- file opened in w+ --
[all …]
H A Dfputcsv_variation8.phpt65 //close the file
71 //delete file
81 -- file opened in r+ --
88 -- file opened in r+b --
102 -- file opened in a+ --
123 -- file opened in w+ --
144 -- file opened in x+ --
165 -- file opened in r+ --
186 -- file opened in a+ --
207 -- file opened in w+ --
[all …]
/PHP-7.4/ext/hash/tests/
H A Dhash_hmac_file_basic.phpt15 $file = __DIR__ . "hash_hmac_file.txt";
16 /* Creating a temporary file file */
17 if (($fp = fopen( $file, "w+")) == FALSE) {
18 echo "Cannot create file ($file)";
22 /* Writing into file */
24 if (is_writable($file)) {
26 echo "Cannot write to file ($file)";
39 echo "md2: " . hash_hmac_file('md2', $file, $key) . "\n";
59 hash_hmac_file('foo', $file);
60 hash_hmac_file('foo', $file, $key, TRUE, 10);
[all …]
/PHP-7.4/ext/spl/tests/
H A DSplFileObject_fputcsv_variation6.phpt57 //close the file
63 //delete file
64 unlink($file);
73 -- file opened in r+ --
80 -- file opened in r+b --
94 -- file opened in a+ --
115 -- file opened in w+ --
136 -- file opened in x+ --
157 -- file opened in r+ --
178 -- file opened in a+ --
[all …]
H A DSplFileObject_fputcsv_variation7.phpt57 //close the file
63 //delete file
64 unlink($file);
73 -- file opened in r+ --
80 -- file opened in r+b --
94 -- file opened in a+ --
115 -- file opened in w+ --
136 -- file opened in x+ --
157 -- file opened in r+ --
178 -- file opened in a+ --
[all …]
H A DSplFileObject_fputcsv_variation8.phpt57 //close the file
63 //delete file
64 unlink($file);
73 -- file opened in r+ --
80 -- file opened in r+b --
94 -- file opened in a+ --
115 -- file opened in w+ --
136 -- file opened in x+ --
157 -- file opened in r+ --
178 -- file opened in a+ --
[all …]
H A DSplFileObject_fputcsv_variation11.phpt54 //close the file
60 //delete file
61 unlink($file);
70 -- file opened in r+ --
77 -- file opened in r+b --
91 -- file opened in a+ --
112 -- file opened in w+ --
133 -- file opened in x+ --
154 -- file opened in r+ --
175 -- file opened in a+ --
[all …]
H A DSplFileObject_fputcsv_variation12.phpt55 //close the file
61 //delete file
62 unlink($file);
71 -- file opened in r+ --
78 -- file opened in r+b --
92 -- file opened in a+ --
113 -- file opened in w+ --
134 -- file opened in x+ --
155 -- file opened in r+ --
176 -- file opened in a+ --
[all …]
H A DSplFileObject_fputcsv_variation5.phpt54 //close the file
60 //delete file
61 unlink($file);
70 -- file opened in r+ --
77 -- file opened in r+b --
91 -- file opened in a+ --
112 -- file opened in w+ --
133 -- file opened in x+ --
154 -- file opened in r+ --
175 -- file opened in a+ --
[all …]
H A DSplFileObject_fputcsv_variation1.phpt54 //close the file
60 //delete file
61 unlink($file);
70 -- file opened in r+ --
77 -- file opened in r+b --
91 -- file opened in a+ --
112 -- file opened in w+ --
133 -- file opened in x+ --
154 -- file opened in r+ --
175 -- file opened in a+ --
[all …]
/PHP-7.4/ext/zlib/tests/
H A Dreadgzfile_variation15.phpt37 echo "file content:";
41 //create a file in dir1
47 echo "file content:";
57 echo "file content:";
65 echo "file content:";
75 echo "file content:";
88 file content:This is a file in dir2
89 file content:This is a file in dir1
90 file content:This is a file in dir1
91 file content:This is a file in working dir
[all …]

Completed in 65 milliseconds

12345678910>>...75