Home
last modified time | relevance | path

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

12345678910>>...61

/PHP-7.3/ext/spl/tests/
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.3/ext/standard/tests/file/
H A Dcopy_variation16.phpt33 echo "- Size of source file => ";
53 echo "Size of source file => ";
84 - Size of source file => int(3500)
88 Size of source file => int(3500)
95 Size of source file => int(3500)
102 Size of source file => int(3500)
109 Size of source file => int(3500)
116 Size of source file => int(3500)
123 Size of source file => int(3500)
130 Size of source file => int(3500)
[all …]
H A Dcopy_variation6.phpt31 echo "Size of source file => ";
61 echo "Size of source file => ";
83 Size of source file => int(0)
90 Size of source file => int(0)
97 Size of source file => int(0)
104 Size of source file => int(0)
111 Size of source file => int(0)
118 Size of source file => int(0)
125 Size of source file => int(0)
132 Size of source file => int(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 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_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 Dcopy_variation3.phpt26 /* array of destination file names */
33 " ", //blank space as file name
53 echo "Destination file name => ";
57 echo "Size of source file => ";
85 Size of source file => int(1500)
86 Size of destination file => int(1500)
92 Size of source file => int(1500)
93 Size of destination file => int(1500)
99 Size of source file => int(1500)
105 Destination file name =>
[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 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 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 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 …]
H A Dsymlink_link_linkinfo_is_link_variation4.phpt24 /* Variation 4 : Create file and a hard link to the file
34 // create temp file
35 $file = fopen($filename, "w");
36 // fill data into file
38 fclose($file);
41 // create hard link to file
70 // write to temp file
71 $file = fopen($filename, "w");
72 fwrite($file, "Hello World");
73 fclose($file);
[all …]
H A Dfputcsv_variation11.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 Dfputcsv_variation12.phpt63 //close the file
69 //delete file
79 -- file opened in r+ --
86 -- file opened in r+b --
100 -- file opened in a+ --
121 -- file opened in w+ --
142 -- file opened in x+ --
163 -- file opened in r+ --
184 -- file opened in a+ --
205 -- file opened in w+ --
[all …]
/PHP-7.3/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 …]
/PHP-7.3/ext/hash/tests/
H A Dhash_hmac_file_basic.phpt17 $file = dirname(__FILE__) . "hash_hmac_file.txt";
18 /* Creating a temporary file file */
19 if (($fp = fopen( $file, "w+")) == FALSE) {
20 echo "Cannot create file ($file)";
24 /* Writing into file */
26 if (is_writable($file)) {
28 echo "Cannot write to file ($file)";
41 echo "md2: " . hash_hmac_file('md2', $file, $key) . "\n";
61 hash_hmac_file('foo', $file);
62 hash_hmac_file('foo', $file, $key, TRUE, 10);
[all …]

Completed in 77 milliseconds

12345678910>>...61