/PHP-7.4/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-mb.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-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 *** 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 D | auto_detect_line_endings_1.phpt | 14 var_dump(fgets(STDIN)); 15 var_dump(fgets(STDIN)); 16 var_dump(fgets(STDIN));
|
H A D | auto_detect_line_endings_2.phpt | 13 var_dump(fgets($stdin)); 14 var_dump(fgets($stdin)); 15 var_dump(fgets($stdin));
|
H A D | fgetss_basic2.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-win32-mb.phpt | 67 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 D | fgetss_basic2-win32.phpt | 67 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 D | fgets_socket_variation1.phpt | 2 fgets() with a socket stream 32 var_dump(fgets($client)); 35 var_dump(fgets($client));
|
H A D | fgetss_basic1.phpt | 55 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 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-7.4/tests/basic/ |
H A D | enable_post_data_reading_06.phpt | 98 echo fgets($f1), fgets($f2);
|
/PHP-7.4/ext/phar/tests/ |
H A D | phar_oo_007.phpt | 34 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 D | bug80933.phpt | 14 $read = $temp->fgets(); 19 $read = $temp->fgets();
|
/PHP-7.4/ext/standard/tests/streams/ |
H A D | proc_open_bug69900.phpt | 16 $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 D | create-test.php | 102 $desc = trim(fgets(STDIN)); 106 $testfile = trim(fgets(STDIN)); 109 $y = trim(fgets(STDIN));
|
/PHP-7.4/sapi/cli/tests/ |
H A D | php_cli_server_009.phpt | 26 echo fgets($fp); 42 echo fgets($fp); 58 echo fgets($fp);
|