Lines Matching refs:file

13 // include the file.inc for Function: function delete_file($filename)
14 include ("file.inc");
17 Test fwrite with file opened in mode : r,rb,rt
26 echo "\n-- Testing fwrite() with file having content of type ". $file_content_type ." --\n";
28 /* open the file using $files_modes and perform fwrite() on it */
30 echo "-- Opening file in $file_mode --\n";
32 // create the temp file with content of type $file_content_type
33 $filename = __DIR__."/fwrite_variation1私はガラスを食べられます1.tmp"; // this is name of the file
38 echo "Error: failed to fopen() file: $filename!";
45 /* Write the data into the file, verify it by checking the file pointer position, eof position,
53 // move the file pointer to end of the file and try fwrite()
57 var_dump( ftell($file_handle) ); //check that file pointer points at eof, expected: 1024
60 // ensure that file content/size didn't change.
62 clearstatcache();//clears file status cache
65 delete_file($filename); // delete file with name fwrite_variation1.tmp
75 -- Testing fwrite() with file having content of type numeric --
76 -- Opening file in r --
79 Notice: fwrite(): Write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
85 Notice: fwrite(): Write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
92 -- Opening file in rb --
95 Notice: fwrite(): Write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
101 Notice: fwrite(): Write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
108 -- Opening file in rt --
111 Notice: fwrite(): Write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
117 Notice: fwrite(): Write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
125 -- Testing fwrite() with file having content of type text --
126 -- Opening file in r --
129 Notice: fwrite(): Write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
135 Notice: fwrite(): Write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
142 -- Opening file in rb --
145 Notice: fwrite(): Write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
151 Notice: fwrite(): Write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
158 -- Opening file in rt --
161 Notice: fwrite(): Write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
167 Notice: fwrite(): Write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
175 -- Testing fwrite() with file having content of type text_with_new_line --
176 -- Opening file in r --
179 Notice: fwrite(): Write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
185 Notice: fwrite(): Write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
192 -- Opening file in rb --
195 Notice: fwrite(): Write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
201 Notice: fwrite(): Write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
208 -- Opening file in rt --
211 Notice: fwrite(): Write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
217 Notice: fwrite(): Write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
225 -- Testing fwrite() with file having content of type alphanumeric --
226 -- Opening file in r --
229 Notice: fwrite(): Write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
235 Notice: fwrite(): Write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
242 -- Opening file in rb --
245 Notice: fwrite(): Write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
251 Notice: fwrite(): Write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
258 -- Opening file in rt --
261 Notice: fwrite(): Write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
267 Notice: fwrite(): Write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d