]> granicus.if.org Git - php/commitdiff
Revert to the previous version for these tests as they were overwritten by mistake...
authorAnt Phillips <ant@php.net>
Wed, 31 Dec 2008 10:36:10 +0000 (10:36 +0000)
committerAnt Phillips <ant@php.net>
Wed, 31 Dec 2008 10:36:10 +0000 (10:36 +0000)
ext/standard/tests/file/ftruncate_error.phpt

index 54fbae7dd0b95b50c752d804e5c26a1f26907314..4dca9b7467560c725aecf33e3138bce2420367fd 100644 (file)
@@ -23,14 +23,12 @@ var_dump( ftruncate() );
 // arguments less than expected numbers
 var_dump( ftruncate( $file_handle ) );
 // check the first size 
-clearstatcache();
 var_dump( filesize($filename) );
 
 echo "-- Testing ftruncate() with more than expected number of arguments --\n";
 // more than expected number of arguments 
 var_dump( ftruncate($file_handle, 10, 20) );
-// check the first size
-clearstatcache(); 
+// check the first size 
 var_dump( filesize($filename) );
 
 // test invalid arguments : non-resources
@@ -55,16 +53,14 @@ 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
-clearstatcache(); 
+// 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
-clearstatcache(); 
+// check the first size 
 var_dump( filesize($filename) );
 
 echo "Done\n";
@@ -124,5 +120,5 @@ int(36)
 
 Warning: ftruncate(): supplied argument is not a valid stream resource in %s on line %d
 bool(false)
-int(0)
+int(36)
 Done