cvs: php-src /ext/standard/tests/strings fprintf.phpt
| From: | Antony Dovgal | Date: | Fri, 20 Apr 2007 21:17:37 +0000 |
| Subject: | cvs: php-src /ext/standard/tests/strings fprintf.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-44015@lists.php.net to get a copy of this message | ||
tony2001 Fri Apr 20 21:17:37 2007 UTC
Modified files:
/php-src/ext/standard/tests/strings fprintf.phpt
Log:
open the file in text mode and avoid downcoding
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/strings/fprintf.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/standard/tests/strings/fprintf.phpt
diff -u php-src/ext/standard/tests/strings/fprintf.phpt:1.1
php-src/ext/standard/tests/strings/fprintf.phpt:1.2
--- php-src/ext/standard/tests/strings/fprintf.phpt:1.1 Wed Apr 11 11:44:37 2007
+++ php-src/ext/standard/tests/strings/fprintf.phpt Fri Apr 20 21:17:37 2007
@@ -6,7 +6,7 @@
$path = dirname(__FILE__);
$data_file = "$path/dump.xt";
if !($fp = fopen($data_file, 'w')) {
- echo "File dump.txt could not be created ,hence exiting from testcase due to pre-requisite
failure\n";
+ echo "File dump.txt could not be created, hence exiting from testcase due to pre-requisite
failure\n";
}
?>
@@ -29,7 +29,7 @@
$strings = array( NULL, "abc", 'aaa' );
/* creating dumping file */
-if (!($fp = fopen('dump.txt', 'w')))
+if (!($fp = fopen('dump.txt', 'wt')))
return;
/* Testing Error Conditions */