Home
last modified time | relevance | path

Searched refs:fgets (Results 76 – 100 of 136) sorted by last modified time

123456

/php-src/ext/zlib/tests/
H A Dgzgetc_basic_1.phpt16 // note that gzgets is an alias to fgets. parameter checking tests will be
H A Dgzgets_basic.phpt8 // note that gzgets is an alias to fgets. parameter checking tests will be
9 // the same as fgets
H A Dgzgetc_basic.phpt16 // note that gzgets is an alias to fgets. parameter checking tests will be
/php-src/ext/standard/tests/streams/
H A Dstream_get_meta_data_file_variation2.phpt22 var_dump(fgets($fp));
H A Dbug72853.phpt22 while ($outs = fgets($pipes[1], 1024)) {
/php-src/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-src/ext/standard/tests/general_functions/
H A Dproc_open_sockets2.inc7 echo strtoupper(trim(fgets(STDIN)));
/php-src/ext/standard/tests/filters/
H A Dbasic.phpt18 var_dump(fgets($fp));
H A Dphp_user_filter_onCreate_failure.phpt17 var_dump(fgets($fp));
/php-src/ext/standard/tests/file/
H A Duserfilters.phpt32 var_dump(fgets($fp));
H A Duserstreams.phpt234 /* we compare the results of fgets using differing line lengths to
235 * test the fgets layer also */
251 $rline = fgets($tf, $line_length);
257 $uline = fgets($fp, $line_length);
298 $uline = fgets($fp, 1024);
299 $rline = fgets($tf, 1024);
316 $data = fgets($fp);
H A Dtouch_basic-win32-mb.phpt34 echo fgets($h);
H A Dtouch_basic-win32.phpt34 echo fgets($h);
H A Dtouch_basic.phpt35 echo fgets($h);
H A Dfgets_basic.phpt2 Test fgets() function : basic functionality
12 echo "*** Testing fgets() : basic functionality ***\n";
48 *** Testing fgets() : basic functionality ***
50 -- Testing fgets() with file opened using mode r --
52 -- fgets() with default length, file pointer at 0 --
62 -- fgets() with default length, file pointer at 0 --
72 -- fgets() with default length, file pointer at 0 --
84 -- fgets() with default length, file pointer at 0 --
94 -- Testing fgets() with file opened using mode rb --
96 -- fgets() with default length, file pointer at 0 --
[all …]
H A Dfgets_error.phpt2 Test fgets() function : error conditions
10 echo "-- Testing fgets() with invalid length arguments --\n";
13 var_dump( fgets($fp, $len) );
20 var_dump( fgets($fp, $len) );
25 var_dump( fgets($fp, $len) ); // return length - 1 always, expect false
30 -- Testing fgets() with invalid length arguments --
31 fgets(): Argument #2 ($length) must be greater than 0
32 fgets(): Argument #2 ($length) must be greater than 0
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)
5 /* try fgets on files which are opened in non readable modes
13 echo "*** Testing fgets() with file opened in write only mode ***\n";
34 var_dump( fgets($file_handle) ); // expected : no chars should be read
48 *** Testing fgets() with file opened in write only mode ***
54 Notice: fgets(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
63 Notice: fgets(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
72 Notice: fgets(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
81 Notice: fgets(): Read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d
90 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
5 /* try reading a line using fgets() using invalid handles
13 echo "*** Testing fgets() : usage variations ***\n";
15 echo "-- Testing fgets() with closed handle --\n";
23 var_dump( fgets($file_handle) ); // default length
28 var_dump( fgets($file_handle, 10) ); // with specific length
36 *** Testing fgets() : usage variations ***
37 -- Testing fgets() with closed handle --
38 fgets(): supplied resource is not a valid stream resource
39 fgets(): supplied resource is not a valid stream resource
H A Dfgets_variation3.phpt2 Test fgets() function : usage variations - read with/without length
14 echo "*** Testing fgets() : usage variations ***\n";
62 *** Testing fgets() : usage variations ***
64 -- Testing fgets() with file opened using mode w+ --
66 -- fgets() with default length, file pointer at 0 --
77 -- fgets() with default length, file pointer at 0 --
88 -- fgets() with default length, file pointer at 0 --
101 -- fgets() with default length, file pointer at 0 --
114 -- fgets() with default length, file pointer at 0 --
125 -- fgets() with default length, file pointer at 0 --
[all …]
H A Dfgets_variation4-win32-mb.phpt2 Test fgets() function : usage variations - seek n read
20 echo "*** Testing fgets() : usage variations ***\n";
42 var_dump( fgets($file_handle ) );
64 *** Testing fgets() : usage variations ***
66 -- Testing fgets() with file opened using mode w+ --
122 -- Testing fgets() with file opened using mode w+b --
178 -- Testing fgets() with file opened using mode w+t --
234 -- Testing fgets() with file opened using mode a+ --
290 -- Testing fgets() with file opened using mode a+b --
346 -- Testing fgets() with file opened using mode a+t --
[all …]
H A Dfgets_variation4-win32.phpt2 Test fgets() function : usage variations - seek n read
20 echo "*** Testing fgets() : usage variations ***\n";
42 var_dump( fgets($file_handle ) );
64 *** Testing fgets() : usage variations ***
66 -- Testing fgets() with file opened using mode w+ --
122 -- Testing fgets() with file opened using mode w+b --
178 -- Testing fgets() with file opened using mode w+t --
234 -- Testing fgets() with file opened using mode a+ --
290 -- Testing fgets() with file opened using mode a+b --
346 -- Testing fgets() with file opened using mode a+t --
[all …]
H A Dfgets_variation4.phpt2 Test fgets() function : usage variations - seek n read
20 echo "*** Testing fgets() : usage variations ***\n";
42 var_dump( fgets($file_handle ) );
64 *** Testing fgets() : usage variations ***
66 -- Testing fgets() with file opened using mode w+ --
122 -- Testing fgets() with file opened using mode w+b --
178 -- Testing fgets() with file opened using mode w+t --
234 -- Testing fgets() with file opened using mode a+ --
290 -- Testing fgets() with file opened using mode a+b --
346 -- Testing fgets() with file opened using mode a+t --
[all …]
H A Dfgets_variation5.phpt57 -- fgets() with length > filesize --
63 -- fgets() with length > filesize --
69 -- fgets() with length > filesize --
76 -- fgets() with length > filesize --
84 -- fgets() with length > filesize --
90 -- fgets() with length > filesize --
96 -- fgets() with length > filesize --
103 -- fgets() with length > filesize --
111 -- fgets() with length > filesize --
117 -- fgets() with length > filesize --
[all …]

Completed in 74 milliseconds

123456