summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/disk_total_space_error.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/file/disk_total_space_error.phpt')
-rw-r--r--ext/standard/tests/file/disk_total_space_error.phpt11
1 files changed, 5 insertions, 6 deletions
diff --git a/ext/standard/tests/file/disk_total_space_error.phpt b/ext/standard/tests/file/disk_total_space_error.phpt
index d986f779ba..196028007e 100644
--- a/ext/standard/tests/file/disk_total_space_error.phpt
+++ b/ext/standard/tests/file/disk_total_space_error.phpt
@@ -2,14 +2,14 @@
Test disk_total_space() function : error conditions
--SKIPIF--
<?php
-if(substr(PHP_OS, 0, 3) == 'WIN')
- die("skip Not valid on Windows");
+if(substr(PHP_OS, 0, 3) == 'WIN' )
+ die("skip Not Valid for Windows");
?>
--FILE--
<?php
/*
* Prototype: float disk_total_space( string $directory );
- * Description: given a string containing a directory, this function
+ * Description: given a string containing a directory, this function
* will return the total number of bytes on the corresponding
* filesystem or disk partition
*/
@@ -24,7 +24,7 @@ var_dump( disk_total_space( $file_path, "extra argument") ); // More than valid
var_dump( disk_total_space( $file_path."/dir1" )); // Invalid directory
$fh = fopen( $file_path."/disk_total_space.tmp", "w" );
-fwrite( $fh, (binary)" Garbage data for the temporary file" );
+fwrite( $fh, " Garbage data for the temporary file" );
var_dump( disk_total_space( $file_path."/disk_total_space.tmp" )); // file input instead of directory
fclose($fh);
@@ -46,7 +46,6 @@ NULL
Warning: disk_total_space(): No such file or directory in %s on line %d
bool(false)
-float(%d)
+float(%f)
--- Done ---
-