/PHP-5.6/ext/standard/tests/file/ |
H A D | fgets_error.phpt | 2 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 D | fgets_variation2.phpt | 2 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 D | fgets_basic.phpt | 2 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 D | fgets_variation5.phpt | 62 -- 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 D | fgets_variation3.phpt | 2 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 D | fgets_variation4-win32.phpt | 2 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 D | fgets_variation4.phpt | 2 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 D | fgets_variation6-win32.phpt | 45 // 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 D | fgets_variation6.phpt | 45 // 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 D | fgets_variation1.phpt | 2 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 D | fgetss_basic2-win32.phpt | 65 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 D | fgetss_basic2.phpt | 63 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 D | fgetss_basic1.phpt | 53 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 D | fgets_socket_variation1.phpt | 2 fgets() with a socket stream 32 var_dump(fgets($client)); 35 var_dump(fgets($client));
|
/PHP-5.6/ext/standard/tests/network/ |
H A D | shutdown.phpt | 46 @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 D | enable_post_data_reading_06.phpt | 98 echo fgets($f1), fgets($f2);
|
/PHP-5.6/ext/phar/tests/ |
H A D | phar_oo_007.phpt | 35 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 D | php_cli_server_009.phpt | 31 echo fgets($fp); 51 echo fgets($fp); 71 echo fgets($fp);
|
H A D | php_cli_server_008.phpt | 28 echo fgets($fp); 48 echo fgets($fp);
|
H A D | php_cli_server_010.phpt | 28 echo fgets($fp); 48 echo fgets($fp);
|
/PHP-5.6/ext/spl/tests/ |
H A D | fileobject_005.phpt | 19 var_dump($fo->fgets(8)); 37 Warning: SplFileObject::fgets() expects exactly 0 parameters, 1 given in %s on line %d
|
H A D | bug46053.phpt | 10 var_dump(trim($x->fgets()));
|
/PHP-5.6/ext/zlib/tests/ |
H A D | gzgets_basic.phpt | 12 // 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 D | ftp_fget_basic.phpt | 22 echo fgets($fp); 28 var_dump(urlencode(fgets($fp)));
|
/PHP-5.6/ext/pdo_mysql/ |
H A D | get_error_codes.php | 6 $line = fgets(STDIN);
|