summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/fgets_variation4.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/file/fgets_variation4.phpt')
-rw-r--r--ext/standard/tests/file/fgets_variation4.phpt511
1 files changed, 2 insertions, 509 deletions
diff --git a/ext/standard/tests/file/fgets_variation4.phpt b/ext/standard/tests/file/fgets_variation4.phpt
index 66f87a0d4b..046d383a87 100644
--- a/ext/standard/tests/file/fgets_variation4.phpt
+++ b/ext/standard/tests/file/fgets_variation4.phpt
@@ -64,514 +64,7 @@ foreach($file_modes as $file_mode) {
echo "Done\n";
?>
---EXPECTF--
-*** Testing fgets() : usage variations ***
-
--- Testing fgets() with file opened using mode w+ --
--- File content type : numeric --
--- fgets() with location set by fseek() with default length --
-int(0)
-int(5)
-string(45) "222222222222222222222222222222222222222222222"
-int(50)
-bool(true)
--- fgets() with location set by fseek() with length = 20 --
-int(0)
-int(25)
-string(19) "2222222222222222222"
-int(44)
-bool(false)
--- File content type : text --
--- fgets() with location set by fseek() with default length --
-int(0)
-int(5)
-string(45) "text text text text text text text text text "
-int(50)
-bool(true)
--- fgets() with location set by fseek() with length = 20 --
-int(0)
-int(25)
-string(19) "text text text text"
-int(44)
-bool(false)
--- File content type : text_with_new_line --
--- fgets() with location set by fseek() with default length --
-int(0)
-int(5)
-string(13) "line of text
-"
-int(18)
-bool(false)
--- fgets() with location set by fseek() with length = 20 --
-int(0)
-int(25)
-string(11) "ne of text
-"
-int(36)
-bool(false)
--- File content type : alphanumeric --
--- fgets() with location set by fseek() with default length --
-int(0)
-int(5)
-string(45) "ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 "
-int(50)
-bool(true)
--- fgets() with location set by fseek() with length = 20 --
-int(0)
-int(25)
-string(19) "ab12 ab12 ab12 ab12"
-int(44)
-bool(false)
-
--- Testing fgets() with file opened using mode w+b --
--- File content type : numeric --
--- fgets() with location set by fseek() with default length --
-int(0)
-int(5)
-string(45) "222222222222222222222222222222222222222222222"
-int(50)
-bool(true)
--- fgets() with location set by fseek() with length = 20 --
-int(0)
-int(25)
-string(19) "2222222222222222222"
-int(44)
-bool(false)
--- File content type : text --
--- fgets() with location set by fseek() with default length --
-int(0)
-int(5)
-string(45) "text text text text text text text text text "
-int(50)
-bool(true)
--- fgets() with location set by fseek() with length = 20 --
-int(0)
-int(25)
-string(19) "text text text text"
-int(44)
-bool(false)
--- File content type : text_with_new_line --
--- fgets() with location set by fseek() with default length --
-int(0)
-int(5)
-string(13) "line of text
-"
-int(18)
-bool(false)
--- fgets() with location set by fseek() with length = 20 --
-int(0)
-int(25)
-string(11) "ne of text
-"
-int(36)
-bool(false)
--- File content type : alphanumeric --
--- fgets() with location set by fseek() with default length --
-int(0)
-int(5)
-string(45) "ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 "
-int(50)
-bool(true)
--- fgets() with location set by fseek() with length = 20 --
-int(0)
-int(25)
-string(19) "ab12 ab12 ab12 ab12"
-int(44)
-bool(false)
-
--- Testing fgets() with file opened using mode w+t --
--- File content type : numeric --
--- fgets() with location set by fseek() with default length --
-int(0)
-int(5)
-string(45) "222222222222222222222222222222222222222222222"
-int(50)
-bool(true)
--- fgets() with location set by fseek() with length = 20 --
-int(0)
-int(25)
-string(19) "2222222222222222222"
-int(44)
-bool(false)
--- File content type : text --
--- fgets() with location set by fseek() with default length --
-int(0)
-int(5)
-string(45) "text text text text text text text text text "
-int(50)
-bool(true)
--- fgets() with location set by fseek() with length = 20 --
-int(0)
-int(25)
-string(19) "text text text text"
-int(44)
-bool(false)
--- File content type : text_with_new_line --
--- fgets() with location set by fseek() with default length --
-int(0)
-int(5)
-string(13) "line of text
-"
-int(18)
-bool(false)
--- fgets() with location set by fseek() with length = 20 --
-int(0)
-int(25)
-string(11) "ne of text
-"
-int(36)
-bool(false)
--- File content type : alphanumeric --
--- fgets() with location set by fseek() with default length --
-int(0)
-int(5)
-string(45) "ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 "
-int(50)
-bool(true)
--- fgets() with location set by fseek() with length = 20 --
-int(0)
-int(25)
-string(19) "ab12 ab12 ab12 ab12"
-int(44)
-bool(false)
-
--- Testing fgets() with file opened using mode a+ --
--- File content type : numeric --
--- fgets() with location set by fseek() with default length --
-int(0)
-int(5)
-string(45) "222222222222222222222222222222222222222222222"
-int(50)
-bool(true)
--- fgets() with location set by fseek() with length = 20 --
-int(0)
-int(25)
-string(19) "2222222222222222222"
-int(44)
-bool(false)
--- File content type : text --
--- fgets() with location set by fseek() with default length --
-int(0)
-int(5)
-string(45) "text text text text text text text text text "
-int(50)
-bool(true)
--- fgets() with location set by fseek() with length = 20 --
-int(0)
-int(25)
-string(19) "text text text text"
-int(44)
-bool(false)
--- File content type : text_with_new_line --
--- fgets() with location set by fseek() with default length --
-int(0)
-int(5)
-string(13) "line of text
-"
-int(18)
-bool(false)
--- fgets() with location set by fseek() with length = 20 --
-int(0)
-int(25)
-string(11) "ne of text
-"
-int(36)
-bool(false)
--- File content type : alphanumeric --
--- fgets() with location set by fseek() with default length --
-int(0)
-int(5)
-string(45) "ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 "
-int(50)
-bool(true)
--- fgets() with location set by fseek() with length = 20 --
-int(0)
-int(25)
-string(19) "ab12 ab12 ab12 ab12"
-int(44)
-bool(false)
-
--- Testing fgets() with file opened using mode a+b --
--- File content type : numeric --
--- fgets() with location set by fseek() with default length --
-int(0)
-int(5)
-string(45) "222222222222222222222222222222222222222222222"
-int(50)
-bool(true)
--- fgets() with location set by fseek() with length = 20 --
-int(0)
-int(25)
-string(19) "2222222222222222222"
-int(44)
-bool(false)
--- File content type : text --
--- fgets() with location set by fseek() with default length --
-int(0)
-int(5)
-string(45) "text text text text text text text text text "
-int(50)
-bool(true)
--- fgets() with location set by fseek() with length = 20 --
-int(0)
-int(25)
-string(19) "text text text text"
-int(44)
-bool(false)
--- File content type : text_with_new_line --
--- fgets() with location set by fseek() with default length --
-int(0)
-int(5)
-string(13) "line of text
-"
-int(18)
-bool(false)
--- fgets() with location set by fseek() with length = 20 --
-int(0)
-int(25)
-string(11) "ne of text
-"
-int(36)
-bool(false)
--- File content type : alphanumeric --
--- fgets() with location set by fseek() with default length --
-int(0)
-int(5)
-string(45) "ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 "
-int(50)
-bool(true)
--- fgets() with location set by fseek() with length = 20 --
-int(0)
-int(25)
-string(19) "ab12 ab12 ab12 ab12"
-int(44)
-bool(false)
-
--- Testing fgets() with file opened using mode a+t --
--- File content type : numeric --
--- fgets() with location set by fseek() with default length --
-int(0)
-int(5)
-string(45) "222222222222222222222222222222222222222222222"
-int(50)
-bool(true)
--- fgets() with location set by fseek() with length = 20 --
-int(0)
-int(25)
-string(19) "2222222222222222222"
-int(44)
-bool(false)
--- File content type : text --
--- fgets() with location set by fseek() with default length --
-int(0)
-int(5)
-string(45) "text text text text text text text text text "
-int(50)
-bool(true)
--- fgets() with location set by fseek() with length = 20 --
-int(0)
-int(25)
-string(19) "text text text text"
-int(44)
-bool(false)
--- File content type : text_with_new_line --
--- fgets() with location set by fseek() with default length --
-int(0)
-int(5)
-string(13) "line of text
-"
-int(18)
-bool(false)
--- fgets() with location set by fseek() with length = 20 --
-int(0)
-int(25)
-string(11) "ne of text
-"
-int(36)
-bool(false)
--- File content type : alphanumeric --
--- fgets() with location set by fseek() with default length --
-int(0)
-int(5)
-string(45) "ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 "
-int(50)
-bool(true)
--- fgets() with location set by fseek() with length = 20 --
-int(0)
-int(25)
-string(19) "ab12 ab12 ab12 ab12"
-int(44)
-bool(false)
-
--- Testing fgets() with file opened using mode x+ --
--- File content type : numeric --
--- fgets() with location set by fseek() with default length --
-int(0)
-int(5)
-string(45) "222222222222222222222222222222222222222222222"
-int(50)
-bool(true)
--- fgets() with location set by fseek() with length = 20 --
-int(0)
-int(25)
-string(19) "2222222222222222222"
-int(44)
-bool(false)
--- File content type : text --
--- fgets() with location set by fseek() with default length --
-int(0)
-int(5)
-string(45) "text text text text text text text text text "
-int(50)
-bool(true)
--- fgets() with location set by fseek() with length = 20 --
-int(0)
-int(25)
-string(19) "text text text text"
-int(44)
-bool(false)
--- File content type : text_with_new_line --
--- fgets() with location set by fseek() with default length --
-int(0)
-int(5)
-string(13) "line of text
-"
-int(18)
-bool(false)
--- fgets() with location set by fseek() with length = 20 --
-int(0)
-int(25)
-string(11) "ne of text
-"
-int(36)
-bool(false)
--- File content type : alphanumeric --
--- fgets() with location set by fseek() with default length --
-int(0)
-int(5)
-string(45) "ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 "
-int(50)
-bool(true)
--- fgets() with location set by fseek() with length = 20 --
-int(0)
-int(25)
-string(19) "ab12 ab12 ab12 ab12"
-int(44)
-bool(false)
-
--- Testing fgets() with file opened using mode x+b --
--- File content type : numeric --
--- fgets() with location set by fseek() with default length --
-int(0)
-int(5)
-string(45) "222222222222222222222222222222222222222222222"
-int(50)
-bool(true)
--- fgets() with location set by fseek() with length = 20 --
-int(0)
-int(25)
-string(19) "2222222222222222222"
-int(44)
-bool(false)
--- File content type : text --
--- fgets() with location set by fseek() with default length --
-int(0)
-int(5)
-string(45) "text text text text text text text text text "
-int(50)
-bool(true)
--- fgets() with location set by fseek() with length = 20 --
-int(0)
-int(25)
-string(19) "text text text text"
-int(44)
-bool(false)
--- File content type : text_with_new_line --
--- fgets() with location set by fseek() with default length --
-int(0)
-int(5)
-string(13) "line of text
-"
-int(18)
-bool(false)
--- fgets() with location set by fseek() with length = 20 --
-int(0)
-int(25)
-string(11) "ne of text
-"
-int(36)
-bool(false)
--- File content type : alphanumeric --
--- fgets() with location set by fseek() with default length --
-int(0)
-int(5)
-string(45) "ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 "
-int(50)
-bool(true)
--- fgets() with location set by fseek() with length = 20 --
-int(0)
-int(25)
-string(19) "ab12 ab12 ab12 ab12"
-int(44)
-bool(false)
-
--- Testing fgets() with file opened using mode x+t --
--- File content type : numeric --
--- fgets() with location set by fseek() with default length --
-int(0)
-int(5)
-string(45) "222222222222222222222222222222222222222222222"
-int(50)
-bool(true)
--- fgets() with location set by fseek() with length = 20 --
-int(0)
-int(25)
-string(19) "2222222222222222222"
-int(44)
-bool(false)
--- File content type : text --
--- fgets() with location set by fseek() with default length --
-int(0)
-int(5)
-string(45) "text text text text text text text text text "
-int(50)
-bool(true)
--- fgets() with location set by fseek() with length = 20 --
-int(0)
-int(25)
-string(19) "text text text text"
-int(44)
-bool(false)
--- File content type : text_with_new_line --
--- fgets() with location set by fseek() with default length --
-int(0)
-int(5)
-string(13) "line of text
-"
-int(18)
-bool(false)
--- fgets() with location set by fseek() with length = 20 --
-int(0)
-int(25)
-string(11) "ne of text
-"
-int(36)
-bool(false)
--- File content type : alphanumeric --
--- fgets() with location set by fseek() with default length --
-int(0)
-int(5)
-string(45) "ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 "
-int(50)
-bool(true)
--- fgets() with location set by fseek() with length = 20 --
-int(0)
-int(25)
-string(19) "ab12 ab12 ab12 ab12"
-int(44)
-bool(false)
-Done
---UEXPECTF--
+--EXPECT--
*** Testing fgets() : usage variations ***
-- Testing fgets() with file opened using mode w+ --
@@ -1077,4 +570,4 @@ int(25)
unicode(19) "ab12 ab12 ab12 ab12"
int(44)
bool(false)
-Done \ No newline at end of file
+Done