ant Wed Dec 31 10:36:10 2008 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/standard/tests/file ftruncate_error.phpt
Log:
Revert to the previous version for these tests as they were overwritten by
mistake (checked on Windows but not on Linux... so the six skipped tests may
not work correctly... but they should be ok and I'll watch the test results).
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/ftruncate_error.phpt?r1=1.1.2.3&r2=1.1.2.4&diff_format=u
Index: php-src/ext/standard/tests/file/ftruncate_error.phpt
diff -u php-src/ext/standard/tests/file/ftruncate_error.phpt:1.1.2.3
php-src/ext/standard/tests/file/ftruncate_error.phpt:1.1.2.4
--- php-src/ext/standard/tests/file/ftruncate_error.phpt:1.1.2.3 Tue Nov
25 11:31:25 2008
+++ php-src/ext/standard/tests/file/ftruncate_error.phpt Wed Dec 31
10:36:10 2008
@@ -23,14 +23,12 @@
// 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 @@
// 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 @@
Warning: ftruncate(): supplied argument is not a valid stream resource in %s
on line %d
bool(false)
-int(0)
+int(36)
Done
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php