summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/fscanf_error.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/file/fscanf_error.phpt')
-rw-r--r--ext/standard/tests/file/fscanf_error.phpt10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/standard/tests/file/fscanf_error.phpt b/ext/standard/tests/file/fscanf_error.phpt
index f93d1b2a57..520e743e6a 100644
--- a/ext/standard/tests/file/fscanf_error.phpt
+++ b/ext/standard/tests/file/fscanf_error.phpt
@@ -13,7 +13,7 @@ $file_path = dirname(__FILE__);
$filename = "$file_path/fscanf_error.tmp";
$file_handle = fopen($filename, 'w');
-if ($file_handle == false)
+if ($file_handle == false)
exit("Error:failed to open file $filename");
fwrite($file_handle, "hello world");
fclose($file_handle);
@@ -23,7 +23,7 @@ var_dump( fscanf() );
// single argument
$file_handle = fopen($filename, 'r');
-if ($file_handle == false)
+if ($file_handle == false)
exit("Error:failed to open file $filename");
var_dump( fscanf($file_handle) );
fclose($file_handle);
@@ -33,7 +33,7 @@ var_dump( fscanf($file_handle, "%s") );
// number of formats in format strings not matching the no of variables
$file_handle = fopen($filename, 'r');
-if ($file_handle == false)
+if ($file_handle == false)
exit("Error:failed to open file $filename");
var_dump( fscanf($file_handle, "%d%s%f", $int_var, $string_var) );
fclose($file_handle);
@@ -47,10 +47,10 @@ $invalid_formats = array( $undefined_var, undefined_constant,
// looping to use various invalid formats with fscanf()
foreach($invalid_formats as $format) {
$file_handle = fopen($filename, 'r');
- if ($file_handle == false)
+ if ($file_handle == false)
exit("Error:failed to open file $filename");
var_dump( fscanf($file_handle, $format) );
- fclose($file_handle);
+ fclose($file_handle);
}
echo "\n*** Done ***";