Lines Matching refs:file
7 Description: reads up to length bytes from the file pointer referenced by handle.
8 Reading stops when up to length bytes have been read, EOF (end of file) is
13 /* Try reading some or all content of the file opened in write only mode */
15 // include the file.inc for common functions for test
16 include ("file.inc");
19 Description : Read data from file of size $read_size and verifies that $expected_size no. of
27 // print file pointer position before read
32 echo "Reading $read_size bytes from file, expecting $expect_size bytes ... ";
39 echo "Error reading file, total number of bytes read = ".strlen($data_from_file)."\n";
41 // file pointer position after read
43 // check if file pointer at eof()
59 echo "\n-- Testing fread() with file having content of type ". $file_content_type ." --\n";
61 /* open the file using $files_modes and perform fread() on it */
68 … $filename = __DIR__."/fread_variation2.tmp"; // this is name of the file created by create_files()
72 echo "Error: failed to fopen() file: $filename!";
81 echo "-- Reading entire file content, expeceted : 0 bytes --\n";
82 // read from file, by giving the file actual size,
88 // reading file by giving less than its size
89 echo "-- Reading file content less than max. file size, expeceted : 0 bytes --\n";
96 // now close the file
99 // delete the file created
100 delete_file($filename); // delete file
109 -- Testing fread() with file having content of type numeric --
111 -- Reading entire file content, expeceted : 0 bytes --
114 Reading 1024 bytes from file, expecting 0 bytes ...
115 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
120 -- Reading file content less than max. file size, expeceted : 0 bytes --
123 Reading 1000 bytes from file, expecting 0 bytes ...
124 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
130 -- Reading entire file content, expeceted : 0 bytes --
133 Reading 1024 bytes from file, expecting 0 bytes ...
134 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
139 -- Reading file content less than max. file size, expeceted : 0 bytes --
142 Reading 1000 bytes from file, expecting 0 bytes ...
143 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
149 -- Reading entire file content, expeceted : 0 bytes --
152 Reading 1024 bytes from file, expecting 0 bytes ...
153 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
158 -- Reading file content less than max. file size, expeceted : 0 bytes --
161 Reading 1000 bytes from file, expecting 0 bytes ...
162 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
168 -- Reading entire file content, expeceted : 0 bytes --
171 Reading 1024 bytes from file, expecting 0 bytes ...
172 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
177 -- Reading file content less than max. file size, expeceted : 0 bytes --
180 Reading 1000 bytes from file, expecting 0 bytes ...
181 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
187 -- Reading entire file content, expeceted : 0 bytes --
190 Reading 1024 bytes from file, expecting 0 bytes ...
191 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
196 -- Reading file content less than max. file size, expeceted : 0 bytes --
199 Reading 1000 bytes from file, expecting 0 bytes ...
200 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
206 -- Reading entire file content, expeceted : 0 bytes --
209 Reading 1024 bytes from file, expecting 0 bytes ...
210 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
215 -- Reading file content less than max. file size, expeceted : 0 bytes --
218 Reading 1000 bytes from file, expecting 0 bytes ...
219 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
225 -- Reading entire file content, expeceted : 0 bytes --
228 Reading 1024 bytes from file, expecting 0 bytes ...
229 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
234 -- Reading file content less than max. file size, expeceted : 0 bytes --
237 Reading 1000 bytes from file, expecting 0 bytes ...
238 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
244 -- Reading entire file content, expeceted : 0 bytes --
247 Reading 1024 bytes from file, expecting 0 bytes ...
248 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
253 -- Reading file content less than max. file size, expeceted : 0 bytes --
256 Reading 1000 bytes from file, expecting 0 bytes ...
257 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
263 -- Reading entire file content, expeceted : 0 bytes --
266 Reading 1024 bytes from file, expecting 0 bytes ...
267 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
272 -- Reading file content less than max. file size, expeceted : 0 bytes --
275 Reading 1000 bytes from file, expecting 0 bytes ...
276 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
282 -- Testing fread() with file having content of type text --
284 -- Reading entire file content, expeceted : 0 bytes --
287 Reading 1024 bytes from file, expecting 0 bytes ...
288 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
293 -- Reading file content less than max. file size, expeceted : 0 bytes --
296 Reading 1000 bytes from file, expecting 0 bytes ...
297 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
303 -- Reading entire file content, expeceted : 0 bytes --
306 Reading 1024 bytes from file, expecting 0 bytes ...
307 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
312 -- Reading file content less than max. file size, expeceted : 0 bytes --
315 Reading 1000 bytes from file, expecting 0 bytes ...
316 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
322 -- Reading entire file content, expeceted : 0 bytes --
325 Reading 1024 bytes from file, expecting 0 bytes ...
326 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
331 -- Reading file content less than max. file size, expeceted : 0 bytes --
334 Reading 1000 bytes from file, expecting 0 bytes ...
335 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
341 -- Reading entire file content, expeceted : 0 bytes --
344 Reading 1024 bytes from file, expecting 0 bytes ...
345 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
350 -- Reading file content less than max. file size, expeceted : 0 bytes --
353 Reading 1000 bytes from file, expecting 0 bytes ...
354 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
360 -- Reading entire file content, expeceted : 0 bytes --
363 Reading 1024 bytes from file, expecting 0 bytes ...
364 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
369 -- Reading file content less than max. file size, expeceted : 0 bytes --
372 Reading 1000 bytes from file, expecting 0 bytes ...
373 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
379 -- Reading entire file content, expeceted : 0 bytes --
382 Reading 1024 bytes from file, expecting 0 bytes ...
383 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
388 -- Reading file content less than max. file size, expeceted : 0 bytes --
391 Reading 1000 bytes from file, expecting 0 bytes ...
392 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
398 -- Reading entire file content, expeceted : 0 bytes --
401 Reading 1024 bytes from file, expecting 0 bytes ...
402 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
407 -- Reading file content less than max. file size, expeceted : 0 bytes --
410 Reading 1000 bytes from file, expecting 0 bytes ...
411 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
417 -- Reading entire file content, expeceted : 0 bytes --
420 Reading 1024 bytes from file, expecting 0 bytes ...
421 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
426 -- Reading file content less than max. file size, expeceted : 0 bytes --
429 Reading 1000 bytes from file, expecting 0 bytes ...
430 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
436 -- Reading entire file content, expeceted : 0 bytes --
439 Reading 1024 bytes from file, expecting 0 bytes ...
440 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
445 -- Reading file content less than max. file size, expeceted : 0 bytes --
448 Reading 1000 bytes from file, expecting 0 bytes ...
449 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
455 -- Testing fread() with file having content of type text_with_new_line --
457 -- Reading entire file content, expeceted : 0 bytes --
460 Reading 1024 bytes from file, expecting 0 bytes ...
461 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
466 -- Reading file content less than max. file size, expeceted : 0 bytes --
469 Reading 1000 bytes from file, expecting 0 bytes ...
470 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
476 -- Reading entire file content, expeceted : 0 bytes --
479 Reading 1024 bytes from file, expecting 0 bytes ...
480 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
485 -- Reading file content less than max. file size, expeceted : 0 bytes --
488 Reading 1000 bytes from file, expecting 0 bytes ...
489 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
495 -- Reading entire file content, expeceted : 0 bytes --
498 Reading 1024 bytes from file, expecting 0 bytes ...
499 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
504 -- Reading file content less than max. file size, expeceted : 0 bytes --
507 Reading 1000 bytes from file, expecting 0 bytes ...
508 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
514 -- Reading entire file content, expeceted : 0 bytes --
517 Reading 1024 bytes from file, expecting 0 bytes ...
518 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
523 -- Reading file content less than max. file size, expeceted : 0 bytes --
526 Reading 1000 bytes from file, expecting 0 bytes ...
527 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
533 -- Reading entire file content, expeceted : 0 bytes --
536 Reading 1024 bytes from file, expecting 0 bytes ...
537 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
542 -- Reading file content less than max. file size, expeceted : 0 bytes --
545 Reading 1000 bytes from file, expecting 0 bytes ...
546 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
552 -- Reading entire file content, expeceted : 0 bytes --
555 Reading 1024 bytes from file, expecting 0 bytes ...
556 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
561 -- Reading file content less than max. file size, expeceted : 0 bytes --
564 Reading 1000 bytes from file, expecting 0 bytes ...
565 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
571 -- Reading entire file content, expeceted : 0 bytes --
574 Reading 1024 bytes from file, expecting 0 bytes ...
575 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
580 -- Reading file content less than max. file size, expeceted : 0 bytes --
583 Reading 1000 bytes from file, expecting 0 bytes ...
584 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
590 -- Reading entire file content, expeceted : 0 bytes --
593 Reading 1024 bytes from file, expecting 0 bytes ...
594 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
599 -- Reading file content less than max. file size, expeceted : 0 bytes --
602 Reading 1000 bytes from file, expecting 0 bytes ...
603 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
609 -- Reading entire file content, expeceted : 0 bytes --
612 Reading 1024 bytes from file, expecting 0 bytes ...
613 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
618 -- Reading file content less than max. file size, expeceted : 0 bytes --
621 Reading 1000 bytes from file, expecting 0 bytes ...
622 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
628 -- Testing fread() with file having content of type alphanumeric --
630 -- Reading entire file content, expeceted : 0 bytes --
633 Reading 1024 bytes from file, expecting 0 bytes ...
634 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
639 -- Reading file content less than max. file size, expeceted : 0 bytes --
642 Reading 1000 bytes from file, expecting 0 bytes ...
643 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
649 -- Reading entire file content, expeceted : 0 bytes --
652 Reading 1024 bytes from file, expecting 0 bytes ...
653 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
658 -- Reading file content less than max. file size, expeceted : 0 bytes --
661 Reading 1000 bytes from file, expecting 0 bytes ...
662 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
668 -- Reading entire file content, expeceted : 0 bytes --
671 Reading 1024 bytes from file, expecting 0 bytes ...
672 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
677 -- Reading file content less than max. file size, expeceted : 0 bytes --
680 Reading 1000 bytes from file, expecting 0 bytes ...
681 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
687 -- Reading entire file content, expeceted : 0 bytes --
690 Reading 1024 bytes from file, expecting 0 bytes ...
691 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
696 -- Reading file content less than max. file size, expeceted : 0 bytes --
699 Reading 1000 bytes from file, expecting 0 bytes ...
700 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
706 -- Reading entire file content, expeceted : 0 bytes --
709 Reading 1024 bytes from file, expecting 0 bytes ...
710 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
715 -- Reading file content less than max. file size, expeceted : 0 bytes --
718 Reading 1000 bytes from file, expecting 0 bytes ...
719 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
725 -- Reading entire file content, expeceted : 0 bytes --
728 Reading 1024 bytes from file, expecting 0 bytes ...
729 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
734 -- Reading file content less than max. file size, expeceted : 0 bytes --
737 Reading 1000 bytes from file, expecting 0 bytes ...
738 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
744 -- Reading entire file content, expeceted : 0 bytes --
747 Reading 1024 bytes from file, expecting 0 bytes ...
748 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
753 -- Reading file content less than max. file size, expeceted : 0 bytes --
756 Reading 1000 bytes from file, expecting 0 bytes ...
757 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
763 -- Reading entire file content, expeceted : 0 bytes --
766 Reading 1024 bytes from file, expecting 0 bytes ...
767 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
772 -- Reading file content less than max. file size, expeceted : 0 bytes --
775 Reading 1000 bytes from file, expecting 0 bytes ...
776 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
782 -- Reading entire file content, expeceted : 0 bytes --
785 Reading 1024 bytes from file, expecting 0 bytes ...
786 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
791 -- Reading file content less than max. file size, expeceted : 0 bytes --
794 Reading 1000 bytes from file, expecting 0 bytes ...
795 Notice: fread(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d