Home
last modified time | relevance | path

Searched refs:fgets (Results 1 – 25 of 107) sorted by relevance

12345

/PHP-7.4/ext/standard/tests/file/
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_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_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_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_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_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 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 Dauto_detect_line_endings_1.phpt14 var_dump(fgets(STDIN));
15 var_dump(fgets(STDIN));
16 var_dump(fgets(STDIN));
H A Dauto_detect_line_endings_2.phpt13 var_dump(fgets($stdin));
14 var_dump(fgets($stdin));
15 var_dump(fgets($stdin));
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_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 Dfgets_socket_variation1.phpt2 fgets() with a socket stream
32 var_dump(fgets($client));
35 var_dump(fgets($client));
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 --
/PHP-7.4/ext/standard/tests/network/
H A Dshutdown.phpt46 @fwrite($socket, fgets($socket));
47 @fwrite($socket, fgets($socket));
51 echo fgets($client1);
52 echo fgets($client1);
59 @fwrite($socket, fgets($socket));
60 @fwrite($socket, fgets($socket));
64 echo fgets($client2);
65 echo fgets($client2);
/PHP-7.4/tests/basic/
H A Denable_post_data_reading_06.phpt98 echo fgets($f1), fgets($f2);
/PHP-7.4/ext/phar/tests/
H A Dphar_oo_007.phpt34 var_dump($f->fgets());
38 var_dump($f->fgets());
41 var_dump($f->fgets());
52 var_dump($f->fgets());
/PHP-7.4/ext/spl/tests/
H A Dbug80933.phpt14 $read = $temp->fgets();
19 $read = $temp->fgets();
/PHP-7.4/ext/standard/tests/streams/
H A Dproc_open_bug69900.phpt16 $s = fgets($in);
34 $s = fgets($pipes[1]);
53 echo "fgets() took more than $max_ms ms $moreThanLimit times\n";
/PHP-7.4/sapi/phpdbg/
H A Dcreate-test.php102 $desc = trim(fgets(STDIN));
106 $testfile = trim(fgets(STDIN));
109 $y = trim(fgets(STDIN));
/PHP-7.4/sapi/cli/tests/
H A Dphp_cli_server_009.phpt26 echo fgets($fp);
42 echo fgets($fp);
58 echo fgets($fp);

Completed in 36 milliseconds

12345