diff options
Diffstat (limited to 'ext/standard/tests/file/fread_variation3-win32.phpt')
-rw-r--r-- | ext/standard/tests/file/fread_variation3-win32.phpt | 112 |
1 files changed, 56 insertions, 56 deletions
diff --git a/ext/standard/tests/file/fread_variation3-win32.phpt b/ext/standard/tests/file/fread_variation3-win32.phpt index d09917207e..c5a1eef26d 100644 --- a/ext/standard/tests/file/fread_variation3-win32.phpt +++ b/ext/standard/tests/file/fread_variation3-win32.phpt @@ -84,14 +84,14 @@ foreach($file_content_types as $file_content_type) { rewind($file_handle); // read file by giving size more than its size - echo "-- Reading beyond filesize, expeceted : 1024 bytes --\n"; + echo "-- Reading beyond filesize, expected : 1024 bytes --\n"; rewind($file_handle); $data_from_file = check_read($file_handle, 1030, ( strstr($file_mode, "+") ? 1024 : 1024) ); if ( $data_from_file != false) var_dump( md5($data_from_file) ); rewind($file_handle); - echo "-- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes --\n"; + echo "-- Reading beyond filesize when file pointer pointing to EOF, expected : 0 bytes --\n"; // try fread when file pointer at end fseek($file_handle, 0, SEEK_END); //reading file when file pointer at end @@ -114,126 +114,126 @@ echo"Done\n"; -- Testing fread() with file having content of type numeric -- -- File opened in mode a+ -- --- Reading beyond filesize, expeceted : 1024 bytes -- +-- Reading beyond filesize, expected : 1024 bytes -- int(0) bool(false) Reading 1030 bytes from file, expecting 1024 bytes ... OK int(1024) bool(true) string(32) "950b7457d1deb6332f2fc5d42f3129d6" --- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes -- +-- Reading beyond filesize when file pointer pointing to EOF, expected : 0 bytes -- int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... OK int(1024) bool(true) -- File opened in mode a+b -- --- Reading beyond filesize, expeceted : 1024 bytes -- +-- Reading beyond filesize, expected : 1024 bytes -- int(0) bool(false) Reading 1030 bytes from file, expecting 1024 bytes ... OK int(1024) bool(true) string(32) "950b7457d1deb6332f2fc5d42f3129d6" --- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes -- +-- Reading beyond filesize when file pointer pointing to EOF, expected : 0 bytes -- int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... OK int(1024) bool(true) -- File opened in mode a+t -- --- Reading beyond filesize, expeceted : 1024 bytes -- +-- Reading beyond filesize, expected : 1024 bytes -- int(0) bool(false) Reading 1030 bytes from file, expecting 1024 bytes ... OK int(1024) bool(true) string(32) "950b7457d1deb6332f2fc5d42f3129d6" --- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes -- +-- Reading beyond filesize when file pointer pointing to EOF, expected : 0 bytes -- int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... OK int(1024) bool(true) -- File opened in mode w+ -- --- Reading beyond filesize, expeceted : 1024 bytes -- +-- Reading beyond filesize, expected : 1024 bytes -- int(0) bool(false) Reading 1030 bytes from file, expecting 1024 bytes ... OK int(1024) bool(true) string(32) "950b7457d1deb6332f2fc5d42f3129d6" --- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes -- +-- Reading beyond filesize when file pointer pointing to EOF, expected : 0 bytes -- int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... OK int(1024) bool(true) -- File opened in mode w+b -- --- Reading beyond filesize, expeceted : 1024 bytes -- +-- Reading beyond filesize, expected : 1024 bytes -- int(0) bool(false) Reading 1030 bytes from file, expecting 1024 bytes ... OK int(1024) bool(true) string(32) "950b7457d1deb6332f2fc5d42f3129d6" --- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes -- +-- Reading beyond filesize when file pointer pointing to EOF, expected : 0 bytes -- int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... OK int(1024) bool(true) -- File opened in mode w+t -- --- Reading beyond filesize, expeceted : 1024 bytes -- +-- Reading beyond filesize, expected : 1024 bytes -- int(0) bool(false) Reading 1030 bytes from file, expecting 1024 bytes ... OK int(1024) bool(true) string(32) "950b7457d1deb6332f2fc5d42f3129d6" --- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes -- +-- Reading beyond filesize when file pointer pointing to EOF, expected : 0 bytes -- int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... OK int(1024) bool(true) -- File opened in mode x+ -- --- Reading beyond filesize, expeceted : 1024 bytes -- +-- Reading beyond filesize, expected : 1024 bytes -- int(0) bool(false) Reading 1030 bytes from file, expecting 1024 bytes ... OK int(1024) bool(true) string(32) "950b7457d1deb6332f2fc5d42f3129d6" --- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes -- +-- Reading beyond filesize when file pointer pointing to EOF, expected : 0 bytes -- int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... OK int(1024) bool(true) -- File opened in mode x+b -- --- Reading beyond filesize, expeceted : 1024 bytes -- +-- Reading beyond filesize, expected : 1024 bytes -- int(0) bool(false) Reading 1030 bytes from file, expecting 1024 bytes ... OK int(1024) bool(true) string(32) "950b7457d1deb6332f2fc5d42f3129d6" --- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes -- +-- Reading beyond filesize when file pointer pointing to EOF, expected : 0 bytes -- int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... OK int(1024) bool(true) -- File opened in mode x+t -- --- Reading beyond filesize, expeceted : 1024 bytes -- +-- Reading beyond filesize, expected : 1024 bytes -- int(0) bool(false) Reading 1030 bytes from file, expecting 1024 bytes ... OK int(1024) bool(true) string(32) "950b7457d1deb6332f2fc5d42f3129d6" --- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes -- +-- Reading beyond filesize when file pointer pointing to EOF, expected : 0 bytes -- int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... OK @@ -242,126 +242,126 @@ bool(true) -- Testing fread() with file having content of type text -- -- File opened in mode a+ -- --- Reading beyond filesize, expeceted : 1024 bytes -- +-- Reading beyond filesize, expected : 1024 bytes -- int(0) bool(false) Reading 1030 bytes from file, expecting 1024 bytes ... OK int(1024) bool(true) string(32) "e486000c4c8452774f746a27658d87fa" --- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes -- +-- Reading beyond filesize when file pointer pointing to EOF, expected : 0 bytes -- int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... OK int(1024) bool(true) -- File opened in mode a+b -- --- Reading beyond filesize, expeceted : 1024 bytes -- +-- Reading beyond filesize, expected : 1024 bytes -- int(0) bool(false) Reading 1030 bytes from file, expecting 1024 bytes ... OK int(1024) bool(true) string(32) "e486000c4c8452774f746a27658d87fa" --- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes -- +-- Reading beyond filesize when file pointer pointing to EOF, expected : 0 bytes -- int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... OK int(1024) bool(true) -- File opened in mode a+t -- --- Reading beyond filesize, expeceted : 1024 bytes -- +-- Reading beyond filesize, expected : 1024 bytes -- int(0) bool(false) Reading 1030 bytes from file, expecting 1024 bytes ... OK int(1024) bool(true) string(32) "e486000c4c8452774f746a27658d87fa" --- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes -- +-- Reading beyond filesize when file pointer pointing to EOF, expected : 0 bytes -- int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... OK int(1024) bool(true) -- File opened in mode w+ -- --- Reading beyond filesize, expeceted : 1024 bytes -- +-- Reading beyond filesize, expected : 1024 bytes -- int(0) bool(false) Reading 1030 bytes from file, expecting 1024 bytes ... OK int(1024) bool(true) string(32) "e486000c4c8452774f746a27658d87fa" --- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes -- +-- Reading beyond filesize when file pointer pointing to EOF, expected : 0 bytes -- int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... OK int(1024) bool(true) -- File opened in mode w+b -- --- Reading beyond filesize, expeceted : 1024 bytes -- +-- Reading beyond filesize, expected : 1024 bytes -- int(0) bool(false) Reading 1030 bytes from file, expecting 1024 bytes ... OK int(1024) bool(true) string(32) "e486000c4c8452774f746a27658d87fa" --- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes -- +-- Reading beyond filesize when file pointer pointing to EOF, expected : 0 bytes -- int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... OK int(1024) bool(true) -- File opened in mode w+t -- --- Reading beyond filesize, expeceted : 1024 bytes -- +-- Reading beyond filesize, expected : 1024 bytes -- int(0) bool(false) Reading 1030 bytes from file, expecting 1024 bytes ... OK int(1024) bool(true) string(32) "e486000c4c8452774f746a27658d87fa" --- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes -- +-- Reading beyond filesize when file pointer pointing to EOF, expected : 0 bytes -- int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... OK int(1024) bool(true) -- File opened in mode x+ -- --- Reading beyond filesize, expeceted : 1024 bytes -- +-- Reading beyond filesize, expected : 1024 bytes -- int(0) bool(false) Reading 1030 bytes from file, expecting 1024 bytes ... OK int(1024) bool(true) string(32) "e486000c4c8452774f746a27658d87fa" --- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes -- +-- Reading beyond filesize when file pointer pointing to EOF, expected : 0 bytes -- int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... OK int(1024) bool(true) -- File opened in mode x+b -- --- Reading beyond filesize, expeceted : 1024 bytes -- +-- Reading beyond filesize, expected : 1024 bytes -- int(0) bool(false) Reading 1030 bytes from file, expecting 1024 bytes ... OK int(1024) bool(true) string(32) "e486000c4c8452774f746a27658d87fa" --- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes -- +-- Reading beyond filesize when file pointer pointing to EOF, expected : 0 bytes -- int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... OK int(1024) bool(true) -- File opened in mode x+t -- --- Reading beyond filesize, expeceted : 1024 bytes -- +-- Reading beyond filesize, expected : 1024 bytes -- int(0) bool(false) Reading 1030 bytes from file, expecting 1024 bytes ... OK int(1024) bool(true) string(32) "e486000c4c8452774f746a27658d87fa" --- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes -- +-- Reading beyond filesize when file pointer pointing to EOF, expected : 0 bytes -- int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... OK @@ -370,126 +370,126 @@ bool(true) -- Testing fread() with file having content of type text_with_new_line -- -- File opened in mode a+ -- --- Reading beyond filesize, expeceted : 1024 bytes -- +-- Reading beyond filesize, expected : 1024 bytes -- int(0) bool(false) Reading 1030 bytes from file, expecting 1024 bytes ... OK int(1024) bool(true) string(32) "b09c8026a64a88d36d4c2f17983964bb" --- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes -- +-- Reading beyond filesize when file pointer pointing to EOF, expected : 0 bytes -- int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... OK int(1024) bool(true) -- File opened in mode a+b -- --- Reading beyond filesize, expeceted : 1024 bytes -- +-- Reading beyond filesize, expected : 1024 bytes -- int(0) bool(false) Reading 1030 bytes from file, expecting 1024 bytes ... OK int(1024) bool(true) string(32) "b09c8026a64a88d36d4c2f17983964bb" --- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes -- +-- Reading beyond filesize when file pointer pointing to EOF, expected : 0 bytes -- int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... OK int(1024) bool(true) -- File opened in mode a+t -- --- Reading beyond filesize, expeceted : 1024 bytes -- +-- Reading beyond filesize, expected : 1024 bytes -- int(0) bool(false) Reading 1030 bytes from file, expecting 1024 bytes ... OK int(1024) bool(true) string(32) "b09c8026a64a88d36d4c2f17983964bb" --- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes -- +-- Reading beyond filesize when file pointer pointing to EOF, expected : 0 bytes -- int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... OK int(1024) bool(true) -- File opened in mode w+ -- --- Reading beyond filesize, expeceted : 1024 bytes -- +-- Reading beyond filesize, expected : 1024 bytes -- int(0) bool(false) Reading 1030 bytes from file, expecting 1024 bytes ... OK int(1024) bool(true) string(32) "b09c8026a64a88d36d4c2f17983964bb" --- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes -- +-- Reading beyond filesize when file pointer pointing to EOF, expected : 0 bytes -- int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... OK int(1024) bool(true) -- File opened in mode w+b -- --- Reading beyond filesize, expeceted : 1024 bytes -- +-- Reading beyond filesize, expected : 1024 bytes -- int(0) bool(false) Reading 1030 bytes from file, expecting 1024 bytes ... OK int(1024) bool(true) string(32) "b09c8026a64a88d36d4c2f17983964bb" --- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes -- +-- Reading beyond filesize when file pointer pointing to EOF, expected : 0 bytes -- int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... OK int(1024) bool(true) -- File opened in mode w+t -- --- Reading beyond filesize, expeceted : 1024 bytes -- +-- Reading beyond filesize, expected : 1024 bytes -- int(0) bool(false) Reading 1030 bytes from file, expecting 1024 bytes ... OK int(1024) bool(true) string(32) "b09c8026a64a88d36d4c2f17983964bb" --- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes -- +-- Reading beyond filesize when file pointer pointing to EOF, expected : 0 bytes -- int(1137) bool(false) Reading 10 bytes from file, expecting 0 bytes ... OK int(1137) bool(true) -- File opened in mode x+ -- --- Reading beyond filesize, expeceted : 1024 bytes -- +-- Reading beyond filesize, expected : 1024 bytes -- int(0) bool(false) Reading 1030 bytes from file, expecting 1024 bytes ... OK int(1024) bool(true) string(32) "b09c8026a64a88d36d4c2f17983964bb" --- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes -- +-- Reading beyond filesize when file pointer pointing to EOF, expected : 0 bytes -- int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... OK int(1024) bool(true) -- File opened in mode x+b -- --- Reading beyond filesize, expeceted : 1024 bytes -- +-- Reading beyond filesize, expected : 1024 bytes -- int(0) bool(false) Reading 1030 bytes from file, expecting 1024 bytes ... OK int(1024) bool(true) string(32) "b09c8026a64a88d36d4c2f17983964bb" --- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes -- +-- Reading beyond filesize when file pointer pointing to EOF, expected : 0 bytes -- int(1024) bool(false) Reading 10 bytes from file, expecting 0 bytes ... OK int(1024) bool(true) -- File opened in mode x+t -- --- Reading beyond filesize, expeceted : 1024 bytes -- +-- Reading beyond filesize, expected : 1024 bytes -- int(0) bool(false) Reading 1030 bytes from file, expecting 1024 bytes ... OK int(1024) bool(true) string(32) "b09c8026a64a88d36d4c2f17983964bb" --- Reading beyond filesize when file pointer pointing to EOF, expeceted : 0 bytes -- +-- Reading beyond filesize when file pointer pointing to EOF, expected : 0 bytes -- int(1137) bool(false) Reading 10 bytes from file, expecting 0 bytes ... OK |