--TEST-- Test fgets() function : usage variations - read when file pointer at EOF --SKIPIF-- --FILE-- --EXPECT-- *** Testing fgets() : usage variations *** -- Testing fgets() with file opened using mode w+ -- -- File content type : numeric -- -- fgets() with file pointer pointing at EOF -- int(0) int(50) bool(false) bool(false) int(50) bool(true) -- File content type : text -- -- fgets() with file pointer pointing at EOF -- int(0) int(50) bool(false) bool(false) int(50) bool(true) -- File content type : text_with_new_line -- -- fgets() with file pointer pointing at EOF -- int(0) int(50) bool(false) bool(false) int(50) bool(true) -- File content type : alphanumeric -- -- fgets() with file pointer pointing at EOF -- int(0) int(50) bool(false) bool(false) int(50) bool(true) -- Testing fgets() with file opened using mode w+b -- -- File content type : numeric -- -- fgets() with file pointer pointing at EOF -- int(0) int(50) bool(false) bool(false) int(50) bool(true) -- File content type : text -- -- fgets() with file pointer pointing at EOF -- int(0) int(50) bool(false) bool(false) int(50) bool(true) -- File content type : text_with_new_line -- -- fgets() with file pointer pointing at EOF -- int(0) int(50) bool(false) bool(false) int(50) bool(true) -- File content type : alphanumeric -- -- fgets() with file pointer pointing at EOF -- int(0) int(50) bool(false) bool(false) int(50) bool(true) -- Testing fgets() with file opened using mode w+t -- -- File content type : numeric -- -- fgets() with file pointer pointing at EOF -- int(0) int(50) bool(false) bool(false) int(50) bool(true) -- File content type : text -- -- fgets() with file pointer pointing at EOF -- int(0) int(50) bool(false) bool(false) int(50) bool(true) -- File content type : text_with_new_line -- -- fgets() with file pointer pointing at EOF -- int(0) int(55) bool(false) bool(false) int(55) bool(true) -- File content type : alphanumeric -- -- fgets() with file pointer pointing at EOF -- int(0) int(50) bool(false) bool(false) int(50) bool(true) -- Testing fgets() with file opened using mode a+ -- -- File content type : numeric -- -- fgets() with file pointer pointing at EOF -- int(0) int(50) bool(false) bool(false) int(50) bool(true) -- File content type : text -- -- fgets() with file pointer pointing at EOF -- int(0) int(50) bool(false) bool(false) int(50) bool(true) -- File content type : text_with_new_line -- -- fgets() with file pointer pointing at EOF -- int(0) int(50) bool(false) bool(false) int(50) bool(true) -- File content type : alphanumeric -- -- fgets() with file pointer pointing at EOF -- int(0) int(50) bool(false) bool(false) int(50) bool(true) -- Testing fgets() with file opened using mode a+b -- -- File content type : numeric -- -- fgets() with file pointer pointing at EOF -- int(0) int(50) bool(false) bool(false) int(50) bool(true) -- File content type : text -- -- fgets() with file pointer pointing at EOF -- int(0) int(50) bool(false) bool(false) int(50) bool(true) -- File content type : text_with_new_line -- -- fgets() with file pointer pointing at EOF -- int(0) int(50) bool(false) bool(false) int(50) bool(true) -- File content type : alphanumeric -- -- fgets() with file pointer pointing at EOF -- int(0) int(50) bool(false) bool(false) int(50) bool(true) -- Testing fgets() with file opened using mode a+t -- -- File content type : numeric -- -- fgets() with file pointer pointing at EOF -- int(0) int(50) bool(false) bool(false) int(50) bool(true) -- File content type : text -- -- fgets() with file pointer pointing at EOF -- int(0) int(50) bool(false) bool(false) int(50) bool(true) -- File content type : text_with_new_line -- -- fgets() with file pointer pointing at EOF -- int(0) int(55) bool(false) bool(false) int(55) bool(true) -- File content type : alphanumeric -- -- fgets() with file pointer pointing at EOF -- int(0) int(50) bool(false) bool(false) int(50) bool(true) -- Testing fgets() with file opened using mode x+ -- -- File content type : numeric -- -- fgets() with file pointer pointing at EOF -- int(0) int(50) bool(false) bool(false) int(50) bool(true) -- File content type : text -- -- fgets() with file pointer pointing at EOF -- int(0) int(50) bool(false) bool(false) int(50) bool(true) -- File content type : text_with_new_line -- -- fgets() with file pointer pointing at EOF -- int(0) int(50) bool(false) bool(false) int(50) bool(true) -- File content type : alphanumeric -- -- fgets() with file pointer pointing at EOF -- int(0) int(50) bool(false) bool(false) int(50) bool(true) -- Testing fgets() with file opened using mode x+b -- -- File content type : numeric -- -- fgets() with file pointer pointing at EOF -- int(0) int(50) bool(false) bool(false) int(50) bool(true) -- File content type : text -- -- fgets() with file pointer pointing at EOF -- int(0) int(50) bool(false) bool(false) int(50) bool(true) -- File content type : text_with_new_line -- -- fgets() with file pointer pointing at EOF -- int(0) int(50) bool(false) bool(false) int(50) bool(true) -- File content type : alphanumeric -- -- fgets() with file pointer pointing at EOF -- int(0) int(50) bool(false) bool(false) int(50) bool(true) -- Testing fgets() with file opened using mode x+t -- -- File content type : numeric -- -- fgets() with file pointer pointing at EOF -- int(0) int(50) bool(false) bool(false) int(50) bool(true) -- File content type : text -- -- fgets() with file pointer pointing at EOF -- int(0) int(50) bool(false) bool(false) int(50) bool(true) -- File content type : text_with_new_line -- -- fgets() with file pointer pointing at EOF -- int(0) int(55) bool(false) bool(false) int(55) bool(true) -- File content type : alphanumeric -- -- fgets() with file pointer pointing at EOF -- int(0) int(50) bool(false) bool(false) int(50) bool(true) Done