summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/fgetss_basic2-win32-mb.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/file/fgetss_basic2-win32-mb.phpt')
-rw-r--r--ext/standard/tests/file/fgetss_basic2-win32-mb.phpt8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/standard/tests/file/fgetss_basic2-win32-mb.phpt b/ext/standard/tests/file/fgetss_basic2-win32-mb.phpt
index c875024718..518e39d4c9 100644
--- a/ext/standard/tests/file/fgetss_basic2-win32-mb.phpt
+++ b/ext/standard/tests/file/fgetss_basic2-win32-mb.phpt
@@ -34,7 +34,7 @@ EOT;
if(substr(PHP_OS, 0, 3) == "WIN") {
$string_with_tags = str_replace("\r",'', $string_with_tags);
}
-$filename = dirname(__FILE__)."/fgetss_basic2私はガラスを食べられます.tmp";
+$filename = dirname(__FILE__)."/fgetss_basic2私はガラスを食べられます.tmp";
/* try reading the file opened in different modes of reading */
$file_modes = array("w+","w+b", "w+t","a+", "a+b", "a+t","x+","x+b","x+t");
@@ -49,7 +49,7 @@ for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
echo "Error: failed to open file $filename!\n";
exit();
}
-
+
// rewind the file pointer to beginning of the file
var_dump( filesize($filename) );
var_dump( rewind($file_handle) );
@@ -68,10 +68,10 @@ for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) {
var_dump( fgetss($file_handle ,30) ); // length parameter given,not reading entire file
var_dump( ftell($file_handle) ); // checking file pointer position initially
var_dump( feof($file_handle) ); // confirm file pointer is not at eof
-
+
// close the file
fclose($file_handle);
-
+
// delete the file
unlink($filename);
} // end of for - mode_counter