Lines Matching refs:file

15  Description: Gets line from file pointer and strip HTML tags
24 // include the common file related test functions
25 include ("file.inc");
43 /* try reading the file opened in different modes of reading */
47 echo "\n-- Testing fgetss() with file opened using $file_modes[$mode_counter] mode --\n";
49 /* create an empty file and write the strings with tags */
53 echo "Error: failed to open file $filename!\n";
57 // rewind the file pointer to beginning of the file
63 /* read entire file and strip tags */
64 …echo "-- fgetss() with default length, file pointer at 0 , expected : no character should be read …
66 var_dump( ftell($file_handle) ); //ensure that file pointer position is not changed
67 var_dump( feof($file_handle) ); // check if end of file pointer is set
69 // close the file
72 // delete the file
81 -- Testing fgetss() with file opened using w mode --
86 -- fgetss() with default length, file pointer at 0 , expected : no character should be read --
88 Notice: fgetss(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
93 -- Testing fgetss() with file opened using wb mode --
98 -- fgetss() with default length, file pointer at 0 , expected : no character should be read --
100 Notice: fgetss(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
105 -- Testing fgetss() with file opened using wt mode --
110 -- fgetss() with default length, file pointer at 0 , expected : no character should be read --
112 Notice: fgetss(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
117 -- Testing fgetss() with file opened using a mode --
122 -- fgetss() with default length, file pointer at 0 , expected : no character should be read --
124 Notice: fgetss(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
129 -- Testing fgetss() with file opened using ab mode --
134 -- fgetss() with default length, file pointer at 0 , expected : no character should be read --
136 Notice: fgetss(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
141 -- Testing fgetss() with file opened using at mode --
146 -- fgetss() with default length, file pointer at 0 , expected : no character should be read --
148 Notice: fgetss(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
153 -- Testing fgetss() with file opened using x mode --
158 -- fgetss() with default length, file pointer at 0 , expected : no character should be read --
160 Notice: fgetss(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
165 -- Testing fgetss() with file opened using xb mode --
170 -- fgetss() with default length, file pointer at 0 , expected : no character should be read --
172 Notice: fgetss(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
177 -- Testing fgetss() with file opened using xt mode --
182 -- fgetss() with default length, file pointer at 0 , expected : no character should be read --
184 Notice: fgetss(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d