summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/fgets_variation4-win32.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/file/fgets_variation4-win32.phpt')
-rw-r--r--ext/standard/tests/file/fgets_variation4-win32.phpt6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/standard/tests/file/fgets_variation4-win32.phpt b/ext/standard/tests/file/fgets_variation4-win32.phpt
index ed8378d357..a7a43fdbb4 100644
--- a/ext/standard/tests/file/fgets_variation4-win32.phpt
+++ b/ext/standard/tests/file/fgets_variation4-win32.phpt
@@ -13,7 +13,7 @@ if (substr(PHP_OS, 0, 3) != 'WIN') {
Description: Gets a line from file pointer
*/
-// include the file.inc for common test funcitons
+// include the file.inc for common test functions
include ("file.inc");
$file_modes = array("w+", "w+b", "w+t",
@@ -46,14 +46,14 @@ foreach($file_modes as $file_mode) {
var_dump( ftell($file_handle) );
var_dump( fgets($file_handle ) );
var_dump( ftell($file_handle) ); // ensure the file pointer position
- var_dump( feof($file_handle) ); // enusre if eof set
+ var_dump( feof($file_handle) ); // ensure if eof set
echo "-- fgets() with location set by fseek() with length = 20 --\n";
var_dump( fseek($file_handle, 25, SEEK_SET) );
var_dump( ftell($file_handle) );
var_dump( fgets($file_handle, 20 ) ); // expected 19 chars
var_dump( ftell($file_handle) ); // ensure the file pointer position
- var_dump( feof($file_handle) ); // enusre if eof set
+ var_dump( feof($file_handle) ); // ensure if eof set
//close file
fclose($file_handle);