Home
last modified time | relevance | path

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

1234

/PHP-5.6/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.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 ***
H A Dfgetss_basic2-win32.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.phpt63 echo "-- fgets() with length = 30, file pointer at 0 --\n";
90 -- fgets() with length = 30, file pointer at 0 --
105 -- fgets() with length = 30, file pointer at 0 --
120 -- fgets() with length = 30, file pointer at 0 --
135 -- fgets() with length = 30, file pointer at 0 --
150 -- fgets() with length = 30, file pointer at 0 --
165 -- fgets() with length = 30, file pointer at 0 --
180 -- fgets() with length = 30, file pointer at 0 --
195 -- fgets() with length = 30, file pointer at 0 --
210 -- fgets() with length = 30, file pointer at 0 --
H A Dfgetss_basic1.phpt53 echo "-- fgets() with length = 30, file pointer at 0 --\n";
76 -- fgets() with length = 30, file pointer at 0 --
87 -- fgets() with length = 30, file pointer at 0 --
98 -- fgets() with length = 30, file pointer at 0 --
109 -- fgets() with length = 30, file pointer at 0 --
120 -- fgets() with length = 30, file pointer at 0 --
131 -- 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));
/PHP-5.6/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-5.6/tests/basic/
H A Denable_post_data_reading_06.phpt98 echo fgets($f1), fgets($f2);
/PHP-5.6/ext/phar/tests/
H A Dphar_oo_007.phpt35 var_dump($f->fgets());
39 var_dump($f->fgets());
42 var_dump($f->fgets());
53 var_dump($f->fgets());
/PHP-5.6/sapi/cli/tests/
H A Dphp_cli_server_009.phpt31 echo fgets($fp);
51 echo fgets($fp);
71 echo fgets($fp);
H A Dphp_cli_server_008.phpt28 echo fgets($fp);
48 echo fgets($fp);
H A Dphp_cli_server_010.phpt28 echo fgets($fp);
48 echo fgets($fp);
/PHP-5.6/ext/spl/tests/
H A Dfileobject_005.phpt19 var_dump($fo->fgets(8));
37 Warning: SplFileObject::fgets() expects exactly 0 parameters, 1 given in %s on line %d
H A Dbug46053.phpt10 var_dump(trim($x->fgets()));
/PHP-5.6/ext/zlib/tests/
H A Dgzgets_basic.phpt12 // note that gzgets is an alias to fgets. parameter checking tests will be
13 // the same as fgets
/PHP-5.6/ext/ftp/tests/
H A Dftp_fget_basic.phpt22 echo fgets($fp);
28 var_dump(urlencode(fgets($fp)));
/PHP-5.6/ext/pdo_mysql/
H A Dget_error_codes.php6 $line = fgets(STDIN);

Completed in 94 milliseconds

1234