Home
last modified time | relevance | path

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

123456

/PHP-8.4/ext/standard/tests/file/
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_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_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 …]
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_variation6-win32.phpt20 echo "*** Testing fgets() : usage variations ***\n";
40 // seek to end of the file and try fgets()
60 *** Testing fgets() : usage variations ***
64 -- fgets() with file pointer pointing at EOF --
72 -- fgets() with file pointer pointing at EOF --
80 -- fgets() with file pointer pointing at EOF --
88 -- fgets() with file pointer pointing at EOF --
98 -- fgets() with file pointer pointing at EOF --
106 -- fgets() with file pointer pointing at EOF --
114 -- fgets() with file pointer pointing at EOF --
[all …]
H A Dfgets_variation6.phpt20 echo "*** Testing fgets() : usage variations ***\n";
40 // seek to end of the file and try fgets()
60 *** Testing fgets() : usage variations ***
64 -- fgets() with file pointer pointing at EOF --
72 -- fgets() with file pointer pointing at EOF --
80 -- fgets() with file pointer pointing at EOF --
88 -- fgets() with file pointer pointing at EOF --
98 -- fgets() with file pointer pointing at EOF --
106 -- fgets() with file pointer pointing at EOF --
114 -- fgets() with file pointer pointing at EOF --
[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_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_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 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 Dfgets_socket_variation1.phpt2 fgets() with a socket stream
32 var_dump(fgets($client));
35 var_dump(fgets($client));
/PHP-8.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-8.4/ext/spl/tests/SplFileObject/
H A Dbug62004.phpt2 Bug #62004 (SplFileObject: fgets after seek returns wrong line)
8 echo $f->fgets();
10 echo $f->fgets();
12 echo $f->fgets();
H A DSplFileObject_key_fgets_and_seek.phpt2 SplFileObject verify interactions between seeking, getting the key and fgets
15 ['line' => $file->key(), 'contents' => trim($file->fgets())],
16 ['line' => $file->key(), 'contents' => trim($file->fgets())],
17 ['line' => $file->key(), 'contents' => trim($file->fgets())],
H A Dbug80933.phpt14 $read = $temp->fgets();
19 $read = $temp->fgets();
/PHP-8.4/ext/standard/tests/filters/
H A Dgh13264.phpt24 while (($line = fgets($stream)) !== false) {
27 // An error is thrown but fgets didn't return false
37 Notice: fgets(): zlib: data error in %s on line %d
42 string(25) "fgets(): zlib: data error"
/PHP-8.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-8.4/tests/basic/
H A Denable_post_data_reading_06.phpt98 echo fgets($f1), fgets($f2);
/PHP-8.4/ext/standard/tests/streams/
H A Dgh11418.phpt2 GH-11418: fgets on a redis socket connection fails on PHP 8.3
27 echo fgets($fp);
H A Dproc_open_bug69900.phpt18 $s = fgets($in);
36 $s = fgets($pipes[1]);
55 echo "fgets() took more than $max_ms ms $moreThanLimit times\n";
/PHP-8.4/sapi/phpdbg/
H A Dcreate-test.php100 $desc = trim(fgets(STDIN));
104 $testfile = trim(fgets(STDIN));
107 $y = trim(fgets(STDIN));
/PHP-8.4/sapi/cli/tests/
H A Dphp_cli_server_009.phpt26 echo fgets($fp);
42 echo fgets($fp);
58 echo fgets($fp);

Completed in 59 milliseconds

123456