moriyoshi               Thu May 14 19:02:38 2009 UTC

  Modified files:              (Branch: PHP_5_3)
    /php-src/ext/iconv/tests    iconv_stream_filter.phpt 
  Log:
  - Update the test as newer libc gets the bogus input through rather than
    rejecting it.
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/iconv/tests/iconv_stream_filter.phpt?r1=1.2&r2=1.2.8.1&diff_format=u
Index: php-src/ext/iconv/tests/iconv_stream_filter.phpt
diff -u php-src/ext/iconv/tests/iconv_stream_filter.phpt:1.2 
php-src/ext/iconv/tests/iconv_stream_filter.phpt:1.2.8.1
--- php-src/ext/iconv/tests/iconv_stream_filter.phpt:1.2        Fri Dec  5 
18:39:04 2003
+++ php-src/ext/iconv/tests/iconv_stream_filter.phpt    Thu May 14 19:02:38 2009
@@ -22,9 +22,9 @@
 $fp = fopen(dirname(__FILE__).'/iconv_stream_filter.txt', 'rb');
 stream_filter_append($fp, 'string.rot13'); // this will make conversion fail.
 stream_filter_append($fp, 'convert.iconv.ISO-2022-JP/EUC-JP');
-var_dump(bin2hex(fread($fp, 10)));
-var_dump(bin2hex(fread($fp, 5)));
-var_dump(bin2hex(fread($fp, 1)));
+var_dump(bin2hex(fread($fp, 10)) != "a4b3a4f3a4cba4c1a4cf");
+var_dump(bin2hex(fread($fp, 5)) != "69636f6e76");
+var_dump(bin2hex(fread($fp, 1)) != "0a");
 fclose($fp);
 ?>
 --EXPECTF--
@@ -34,8 +34,6 @@
 string(20) "a4b3a4f3a4cba4c1a4cf"
 string(10) "69636f6e76"
 string(2) "0a"
-
-Warning: fread(): iconv stream filter ("ISO-2022-JP"=>"EUC-JP"): invalid 
multibyte sequence in %s on line %d
-string(0) ""
-string(0) ""
-string(0) ""
+bool(true)
+bool(true)
+bool(true)



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

Reply via email to