summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/fflush_variation2.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/file/fflush_variation2.phpt')
-rw-r--r--ext/standard/tests/file/fflush_variation2.phpt14
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/standard/tests/file/fflush_variation2.phpt b/ext/standard/tests/file/fflush_variation2.phpt
index 9dfa17c43c..09670e875b 100644
--- a/ext/standard/tests/file/fflush_variation2.phpt
+++ b/ext/standard/tests/file/fflush_variation2.phpt
@@ -35,14 +35,14 @@ foreach( $file_types as $type ) {
$file_handle = fopen($file_name, "w");
if($file_handle == false)
exit("Error:failed to open file $file_name");
-
+
//fill the file with some data if mode is append mode
- if( substr($mode, 0, 1) == "a" )
- fill_file($file_handle, $type, 10);
-
+ if( substr($mode, 0, 1) == "a" )
+ fill_file($file_handle, $type, 10);
+
//close the file
fclose($file_handle);
-
+
// creating the sym link
var_dump( symlink($file_name, $symlink_name) );
$file_handle = fopen($symlink_name, $mode);
@@ -50,10 +50,10 @@ foreach( $file_types as $type ) {
exit("Error:failed to open link $symlink_name");
// filling data into 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);
-
+
// reading the data from the file
var_dump( readfile($symlink_name) );