kraghuba Thu Oct 11 11:52:27 2007 UTC
Modified files: (Branch: PHP_5_3)
/php-src/ext/standard/tests/file fgetc_basic.phpt
Log:
fix test (temp. file name)
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fgetc_basic.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u
Index: php-src/ext/standard/tests/file/fgetc_basic.phpt
diff -u php-src/ext/standard/tests/file/fgetc_basic.phpt:1.1.2.1
php-src/ext/standard/tests/file/fgetc_basic.phpt:1.1.2.1.2.1
--- php-src/ext/standard/tests/file/fgetc_basic.phpt:1.1.2.1 Fri May 25
13:44:23 2007
+++ php-src/ext/standard/tests/file/fgetc_basic.phpt Thu Oct 11 11:52:27 2007
@@ -21,7 +21,7 @@
echo $outerloop_counter + 1;
echo " ---\n";
// create file file
- create_files(dirname(__FILE__), 1, $file_content_types[$outerloop_counter]);
+ create_files(dirname(__FILE__), 1, $file_content_types[$outerloop_counter],
0755, 1, "w", "fgetc_basic", 1);
//open the file in different modes and check the working of fgetc
for($innerloop_counter = 0; $innerloop_counter < count($file_modes);
$innerloop_counter++) {
@@ -32,7 +32,7 @@
echo " --\n";
// open the file using the $file_modes
- $filename = dirname(__FILE__)."/file1.tmp"; // file name that is created
by create_files
+ $filename = dirname(__FILE__)."/fgetc_basic1.tmp"; // file name that is
created by create_files
echo "-- Testing fgetc() : file opened using
$file_modes[$innerloop_counter] mode --\n";
$file_handle = fopen($filename, $file_modes[$innerloop_counter]);
if ( !$file_handle ) {
@@ -55,7 +55,7 @@
} // end of innerloop for
// delete the file
- delete_files(dirname(__FILE__), 1);
+ delete_files(dirname(__FILE__), 1, "fgetc_basic", 1, ".tmp");
} // end of outerloop for
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php