Lines Matching refs:file

7  Description: fwrite() writes the contents of string to the file stream pointed to by handle.
16 // include the file.inc for Function: function delete_file($filename)
17 include ("file.inc");
20 Test fwrite with file opened in mode : r,rb,rt
28 echo "\n-- Testing fwrite() with file having content of type ". $file_content_type ." --\n";
30 /* open the file using $files_modes and perform fwrite() on it */
32 echo "-- Opening file in $file_mode --\n";
34 // create the temp file with content of type $file_content_type
35 $filename = __DIR__."/fwrite_variation1.tmp"; // this is name of the file
40 echo "Error: failed to fopen() file: $filename!";
47 /* Write the data into the file, verify it by checking the file pointer position, eof position,
55 // move the file pointer to end of the file and try fwrite()
59 var_dump( ftell($file_handle) ); //check that file pointer points at eof, expected: 1024
62 // ensure that file content/size didn't change.
64 clearstatcache();//clears file status cache
67 delete_file($filename); // delete file with name fwrite_variation1.tmp
76 -- Testing fwrite() with file having content of type numeric --
77 -- Opening file in r --
80 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
86 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
93 -- Opening file in rb --
96 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
102 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
109 -- Opening file in rt --
112 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
118 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
126 -- Testing fwrite() with file having content of type text --
127 -- Opening file in r --
130 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
136 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
143 -- Opening file in rb --
146 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
152 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
159 -- Opening file in rt --
162 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
168 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
176 -- Testing fwrite() with file having content of type text_with_new_line --
177 -- Opening file in r --
180 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
186 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
193 -- Opening file in rb --
196 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
202 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
209 -- Opening file in rt --
212 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
218 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
226 -- Testing fwrite() with file having content of type alphanumeric --
227 -- Opening file in r --
230 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
236 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
243 -- Opening file in rb --
246 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
252 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
259 -- Opening file in rt --
262 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d
268 Notice: fwrite(): write of 1024 bytes failed with errno=9 Bad file descriptor in %s on line %d