Home
last modified time | relevance | path

Searched refs:fgets (Results 26 – 50 of 107) sorted by path

12345

/PHP-7.4/ext/standard/tests/file/
H A Dbug27508.phpt68 echo fgets($fp);
H A Dbug38450.phpt97 echo fgets($fp);
H A Dbug38450_1.phpt97 echo fgets($fp);
H A Dbug38450_2.phpt97 echo fgets($fp);
H A Dbug38450_3.phpt97 echo fgets($fp);
H A Dfeof_basic.phpt26 //so fgets will be called even if we are at the end of the file on
31 $lastline = fgets($h);
H A Dfgets_basic.phpt2 Test fgets() function : basic functionality
6 Prototype: string fgets ( resource $handle [, int $length] );
17 echo "*** Testing fgets() : basic functionality ***\n";
53 *** Testing fgets() : basic functionality ***
55 -- Testing fgets() with file opened using mode r --
57 -- fgets() with default length, file pointer at 0 --
67 -- fgets() with default length, file pointer at 0 --
77 -- fgets() with default length, file pointer at 0 --
89 -- fgets() with default length, file pointer at 0 --
99 -- Testing fgets() with file opened using mode rb --
[all …]
H A Dfgets_error.phpt2 Test fgets() function : error conditions
12 echo "-- Testing fgets() with zero argument --\n";
13 var_dump( fgets() );
18 var_dump( fgets($fp, 10, $fp) );
23 var_dump( fgets($fp, $len) );
25 var_dump( fgets($fp, $len) );
49 var_dump(fgets($fp,10));
51 // fgets() on a file handle which is unset
54 var_dump( fgets(@$file_handle,10));
60 -- Testing fgets() with zero argument --
[all …]
H A Dfgets_socket_variation1.phpt2 fgets() with a socket stream
32 var_dump(fgets($client));
35 var_dump(fgets($client));
H A Dfgets_socket_variation2.phpt2 fgets() over a socket with more than a buffer's worth of data
46 while ($line = fgets($client,256)) {
H A Dfgets_variation1.phpt2 Test fgets() function : usage variations - write only modes (Bug #42036)
6 Prototype: string fgets ( resource $handle [, int $length] );
9 /* try fgets on files which are opened in non readable modes
17 echo "*** Testing fgets() with file opened in write only mode ***\n";
38 var_dump( fgets($file_handle) ); // expected : no chars should be read
52 *** Testing fgets() with file opened in write only mode ***
58 Notice: fgets(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
67 Notice: fgets(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
76 Notice: fgets(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
85 Notice: fgets(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
[all …]
H A Dfgets_variation2.phpt2 Test fgets() function : usage variations - closed handle
10 /* try reading a line using fgets() using invalid handles
18 echo "*** Testing fgets() : usage variations ***\n";
20 echo "-- Testing fgets() with closed handle --\n";
27 var_dump( fgets($file_handle) ); // default length
30 echo "-- Testing fgets() with unset handle --\n";
36 //fgets using unset handle
37 var_dump( fgets($file_handle) ); // default length
43 *** Testing fgets() : usage variations ***
44 -- Testing fgets() with closed handle --
[all …]
H A Dfgets_variation3.phpt2 Test fgets() function : usage variations - read with/without length
6 Prototype: string fgets ( resource $handle [, int $length] );
19 echo "*** Testing fgets() : usage variations ***\n";
67 *** Testing fgets() : usage variations ***
69 -- Testing fgets() with file opened using mode w+ --
71 -- fgets() with default length, file pointer at 0 --
82 -- fgets() with default length, file pointer at 0 --
93 -- fgets() with default length, file pointer at 0 --
106 -- fgets() with default length, file pointer at 0 --
119 -- fgets() with default length, file pointer at 0 --
[all …]
H A Dfgets_variation4-win32-mb.phpt2 Test fgets() function : usage variations - seek n read
12 Prototype: string fgets ( resource $handle [, int $length] );
25 echo "*** Testing fgets() : usage variations ***\n";
47 var_dump( fgets($file_handle ) );
69 *** Testing fgets() : usage variations ***
71 -- Testing fgets() with file opened using mode w+ --
127 -- Testing fgets() with file opened using mode w+b --
183 -- Testing fgets() with file opened using mode w+t --
239 -- Testing fgets() with file opened using mode a+ --
295 -- Testing fgets() with file opened using mode a+b --
[all …]
H A Dfgets_variation4-win32.phpt2 Test fgets() function : usage variations - seek n read
12 Prototype: string fgets ( resource $handle [, int $length] );
25 echo "*** Testing fgets() : usage variations ***\n";
47 var_dump( fgets($file_handle ) );
69 *** Testing fgets() : usage variations ***
71 -- Testing fgets() with file opened using mode w+ --
127 -- Testing fgets() with file opened using mode w+b --
183 -- Testing fgets() with file opened using mode w+t --
239 -- Testing fgets() with file opened using mode a+ --
295 -- Testing fgets() with file opened using mode a+b --
[all …]
H A Dfgets_variation4.phpt2 Test fgets() function : usage variations - seek n read
12 Prototype: string fgets ( resource $handle [, int $length] );
25 echo "*** Testing fgets() : usage variations ***\n";
47 var_dump( fgets($file_handle ) );
69 *** Testing fgets() : usage variations ***
71 -- Testing fgets() with file opened using mode w+ --
127 -- Testing fgets() with file opened using mode w+b --
183 -- Testing fgets() with file opened using mode w+t --
239 -- Testing fgets() with file opened using mode a+ --
295 -- Testing fgets() with file opened using mode a+b --
[all …]
H A Dfgets_variation5.phpt62 -- fgets() with length > filesize --
68 -- fgets() with length > filesize --
74 -- fgets() with length > filesize --
81 -- fgets() with length > filesize --
89 -- fgets() with length > filesize --
95 -- fgets() with length > filesize --
101 -- fgets() with length > filesize --
108 -- fgets() with length > filesize --
116 -- fgets() with length > filesize --
122 -- fgets() with length > filesize --
[all …]
H A Dfgets_variation6-win32.phpt45 // seek to end of the file and try fgets()
65 *** Testing fgets() : usage variations ***
69 -- fgets() with file pointer pointing at EOF --
77 -- fgets() with file pointer pointing at EOF --
85 -- fgets() with file pointer pointing at EOF --
93 -- fgets() with file pointer pointing at EOF --
103 -- fgets() with file pointer pointing at EOF --
111 -- fgets() with file pointer pointing at EOF --
119 -- fgets() with file pointer pointing at EOF --
127 -- fgets() with file pointer pointing at EOF --
[all …]
H A Dfgets_variation6.phpt45 // seek to end of the file and try fgets()
65 *** Testing fgets() : usage variations ***
69 -- fgets() with file pointer pointing at EOF --
77 -- fgets() with file pointer pointing at EOF --
85 -- fgets() with file pointer pointing at EOF --
93 -- fgets() with file pointer pointing at EOF --
103 -- fgets() with file pointer pointing at EOF --
111 -- fgets() with file pointer pointing at EOF --
119 -- fgets() with file pointer pointing at EOF --
127 -- fgets() with file pointer pointing at EOF --
[all …]
H A Dfgetss_basic1.phpt55 echo "-- fgets() with length = 30, file pointer at 0 --\n";
78 -- fgets() with length = 30, file pointer at 0 --
89 -- fgets() with length = 30, file pointer at 0 --
100 -- fgets() with length = 30, file pointer at 0 --
111 -- fgets() with length = 30, file pointer at 0 --
122 -- fgets() with length = 30, file pointer at 0 --
133 -- fgets() with length = 30, file pointer at 0 --
H A Dfgetss_basic2-win32-mb.phpt67 echo "-- fgets() with length = 30, file pointer at 0 --\n";
94 -- fgets() with length = 30, file pointer at 0 --
109 -- fgets() with length = 30, file pointer at 0 --
124 -- fgets() with length = 30, file pointer at 0 --
139 -- fgets() with length = 30, file pointer at 0 --
154 -- fgets() with length = 30, file pointer at 0 --
169 -- fgets() with length = 30, file pointer at 0 --
184 -- fgets() with length = 30, file pointer at 0 --
199 -- fgets() with length = 30, file pointer at 0 --
214 -- fgets() with length = 30, file pointer at 0 --
H A Dfgetss_basic2-win32.phpt67 echo "-- fgets() with length = 30, file pointer at 0 --\n";
94 -- fgets() with length = 30, file pointer at 0 --
109 -- fgets() with length = 30, file pointer at 0 --
124 -- fgets() with length = 30, file pointer at 0 --
139 -- fgets() with length = 30, file pointer at 0 --
154 -- fgets() with length = 30, file pointer at 0 --
169 -- fgets() with length = 30, file pointer at 0 --
184 -- fgets() with length = 30, file pointer at 0 --
199 -- fgets() with length = 30, file pointer at 0 --
214 -- fgets() with length = 30, file pointer at 0 --
H A Dfgetss_basic2.phpt65 echo "-- fgets() with length = 30, file pointer at 0 --\n";
92 -- fgets() with length = 30, file pointer at 0 --
107 -- fgets() with length = 30, file pointer at 0 --
122 -- fgets() with length = 30, file pointer at 0 --
137 -- fgets() with length = 30, file pointer at 0 --
152 -- fgets() with length = 30, file pointer at 0 --
167 -- fgets() with length = 30, file pointer at 0 --
182 -- fgets() with length = 30, file pointer at 0 --
197 -- fgets() with length = 30, file pointer at 0 --
212 -- fgets() with length = 30, file pointer at 0 --
H A Dfgetss_variation1-win32.phpt18 /* try fgets on files which are opened in non readable modes
H A Dfgetss_variation1.phpt18 /* try fgets on files which are opened in non readable modes

Completed in 59 milliseconds

12345