summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/fflush_variation1.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/file/fflush_variation1.phpt')
-rw-r--r--ext/standard/tests/file/fflush_variation1.phpt18
1 files changed, 9 insertions, 9 deletions
diff --git a/ext/standard/tests/file/fflush_variation1.phpt b/ext/standard/tests/file/fflush_variation1.phpt
index 2ecf7ea919..7c91a7a23d 100644
--- a/ext/standard/tests/file/fflush_variation1.phpt
+++ b/ext/standard/tests/file/fflush_variation1.phpt
@@ -23,7 +23,7 @@ $file_modes = array("w", "wb", "wt", "w+", "w+b", "w+t",
"a", "ab", "at", "a+","a+b", "a+t",
"x", "xb", "xt", "x+", "x+b", "x+t");
-$file_name = "$file_path/fflush_variation1.tmp";
+$file_name = "$file_path/fflush_variation1.tmp";
$count = 1;
@@ -31,7 +31,7 @@ foreach( $file_types as $type ) {
echo "-- Iteration $count with file containing $type Data--\n";
foreach( $file_modes as $mode ) {
echo "-- File opened in $mode mode --\n";
-
+
// creating the file except for x mode
if( substr($mode, 0, 1) != "x" ) {
$file_handle = fopen($file_name, "w");
@@ -39,19 +39,19 @@ foreach( $file_types as $type ) {
exit("Error:failed to open file $file_name");
// filling the file with some data if mode is append mode
- if( substr($mode, 0, 1) == "a")
+ if( substr($mode, 0, 1) == "a")
fill_file($file_handle, $type, 10);
fclose($file_handle);
- }
-
- // opening the file in different modes
+ }
+
+ // opening the file in different modes
$file_handle = fopen($file_name, $mode);
- if($file_handle == false)
+ if($file_handle == false)
exit("Error:failed to open file $file_name");
-
+
// writing data to the file
- var_dump( fill_file($file_handle, $type, 50) );
+ var_dump( fill_file($file_handle, $type, 50) );
var_dump( fflush($file_handle) );
fclose($file_handle);