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.phpt8
1 files changed, 2 insertions, 6 deletions
diff --git a/ext/standard/tests/file/fscanf_error.phpt b/ext/standard/tests/file/fscanf_error.phpt
index c50af50b6d..da586555be 100644
--- a/ext/standard/tests/file/fscanf_error.phpt
+++ b/ext/standard/tests/file/fscanf_error.phpt
@@ -31,9 +31,7 @@ try {
fclose($file_handle);
// different invalid format strings
-$invalid_formats = array( $undefined_var,
- "%", "%h", "%.", "%d%m"
- );
+$invalid_formats = array("", "%", "%h", "%.", "%d%m");
// looping to use various invalid formats with fscanf()
@@ -57,12 +55,10 @@ $file_path = __DIR__;
$filename = "$file_path/fscanf_error.tmp";
unlink($filename);
?>
---EXPECTF--
+--EXPECT--
*** Testing fscanf() for error conditions ***
fscanf(): supplied resource is not a valid File-Handle resource
Different numbers of variable names and field specifiers
-
-Warning: Undefined variable $undefined_var in %s on line %d
array(0) {
}
Bad scan conversion character "