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 */

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to