/PHP-8.0/ext/standard/tests/file/ |
H A D | fgets_basic.phpt | 2 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 D | fgets_variation5.phpt | 57 -- 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 D | fgets_variation3.phpt | 2 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 D | fgets_variation4-win32-mb.phpt | 2 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 D | fgets_variation4-win32.phpt | 2 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 D | fgets_variation4.phpt | 2 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 D | fgets_variation2.phpt | 2 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 D | fgets_variation6-win32.phpt | 20 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 D | fgets_variation6.phpt | 20 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 D | fgets_error.phpt | 2 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 D | fgets_variation1.phpt | 2 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 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 | fgets_socket_variation1.phpt | 2 fgets() with a socket stream 32 var_dump(fgets($client)); 35 var_dump(fgets($client));
|
/PHP-8.0/ext/spl/tests/ |
H A D | bug62004.phpt | 2 Bug #62004 (SplFileObject: fgets after seek returns wrong line) 8 echo $f->fgets(); 10 echo $f->fgets(); 12 echo $f->fgets();
|
H A D | SplFileObject_key_fgets_and_seek.phpt | 2 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 D | bug80933.phpt | 14 $read = $temp->fgets(); 19 $read = $temp->fgets();
|
/PHP-8.0/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-8.0/tests/basic/ |
H A D | enable_post_data_reading_06.phpt | 98 echo fgets($f1), fgets($f2);
|
/PHP-8.0/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-8.0/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-8.0/sapi/cli/tests/ |
H A D | php_cli_server_009.phpt | 26 echo fgets($fp); 42 echo fgets($fp); 58 echo fgets($fp);
|
H A D | php_cli_server_008.phpt | 23 echo fgets($fp); 39 echo fgets($fp);
|
/PHP-8.0/sapi/phpdbg/ |
H A D | create-test.php | 100 $desc = trim(fgets(STDIN)); 104 $testfile = trim(fgets(STDIN)); 107 $y = trim(fgets(STDIN));
|
/PHP-8.0/ext/standard/tests/general_functions/ |
H A D | proc_open_sockets2.inc | 7 echo strtoupper(trim(fgets(STDIN)));
|