summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/ftruncate_error.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/file/ftruncate_error.phpt')
-rw-r--r--ext/standard/tests/file/ftruncate_error.phpt14
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/standard/tests/file/ftruncate_error.phpt b/ext/standard/tests/file/ftruncate_error.phpt
index 40dcf4cf51..60b4e96278 100644
--- a/ext/standard/tests/file/ftruncate_error.phpt
+++ b/ext/standard/tests/file/ftruncate_error.phpt
@@ -17,18 +17,18 @@ echo "\n Initial file size = ".filesize($filename)."\n";
echo "-- Testing ftruncate() with less than expected number of arguments --\n";
-// zero arguments
+// zero arguments
var_dump( ftruncate() );
// arguments less than expected numbers
var_dump( ftruncate( $file_handle ) );
-// check the first size
+// check the first size
var_dump( filesize($filename) );
echo "-- Testing ftruncate() with more than expected number of arguments --\n";
-// more than expected number of arguments
+// more than expected number of arguments
var_dump( ftruncate($file_handle, 10, 20) );
-// check the first size
+// check the first size
var_dump( filesize($filename) );
// test invalid arguments : non-resources
@@ -53,18 +53,18 @@ echo "-- Testing ftruncate() with closed/unset file handle --\n";
// ftruncate on close file handle
fclose($file_handle);
var_dump( ftruncate($file_handle,10) );
-// check the first size
+// check the first size
var_dump( filesize($filename) );
// ftruncate on a file handle which is unset
$fp = fopen($filename, "w");
unset($fp); //unset file handle
var_dump( ftruncate(@$fp,10));
-// check the first size
+// check the first size
var_dump( filesize($filename) );
echo "Done\n";
-?>
+?>
--CLEAN--
<?php
$filename = dirname(__FILE__)."/ftruncate_error.tmp";