Lines Matching refs:file

13  Description: fwrite() writes the contents of string to the file stream pointed to by handle.
22 // include the file.inc for Function: function delete_file($filename)
23 include ("file.inc");
26 Test fwrite with file opened in mode : r,rb,rt
35 echo "\n-- Testing fwrite() with file having content of type ". $file_content_type ." --\n";
37 /* open the file using $files_modes and perform fwrite() on it */
39 echo "-- Opening file in $file_mode --\n";
41 // create the temp file with content of type $file_content_type
42 $filename = __DIR__."/fwrite_variation1私はガラスを食べられます1.tmp"; // this is name of the file
47 echo "Error: failed to fopen() file: $filename!";
54 /* Write the data into the file, verify it by checking the file pointer position, eof position,
62 // move the file pointer to end of the file and try fwrite()
66 var_dump( ftell($file_handle) ); //check that file pointer points at eof, expected: 1024
69 // ensure that file content/size didn't change.
71 clearstatcache();//clears file status cache
74 delete_file($filename); // delete file with name fwrite_variation1.tmp
84 -- Testing fwrite() with file having content of type numeric --
85 -- Opening file in r --
88 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
94 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
101 -- Opening file in rb --
104 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
110 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
117 -- Opening file in rt --
120 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
126 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
134 -- Testing fwrite() with file having content of type text --
135 -- Opening file in r --
138 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
144 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
151 -- Opening file in rb --
154 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
160 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
167 -- Opening file in rt --
170 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
176 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
184 -- Testing fwrite() with file having content of type text_with_new_line --
185 -- Opening file in r --
188 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
194 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
201 -- Opening file in rb --
204 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
210 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
217 -- Opening file in rt --
220 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
226 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
234 -- Testing fwrite() with file having content of type alphanumeric --
235 -- Opening file in r --
238 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
244 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
251 -- Opening file in rb --
254 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
260 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
267 -- Opening file in rt --
270 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
276 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d