tony2001                Wed Feb 21 19:53:48 2007 UTC

  Modified files:              
    /php-src/ext/iconv/tests    bug37176.phpt bug37773.phpt 
  Log:
  fix tests
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/iconv/tests/bug37176.phpt?r1=1.2&r2=1.3&diff_format=u
Index: php-src/ext/iconv/tests/bug37176.phpt
diff -u php-src/ext/iconv/tests/bug37176.phpt:1.2 
php-src/ext/iconv/tests/bug37176.phpt:1.3
--- php-src/ext/iconv/tests/bug37176.phpt:1.2   Tue Jun 27 00:09:23 2006
+++ php-src/ext/iconv/tests/bug37176.phpt       Wed Feb 21 19:53:48 2007
@@ -1,7 +1,15 @@
 --TEST--
 Bug #37176 (iconv_strpos() fails to find a string)
 --SKIPIF--
-<?php include('skipif.inc'); ?>
+<?php 
+include('skipif.inc'); 
+
+$test = @iconv_strpos("abbttt","ttt",0,"UTF-8");
+if ($test === false) {
+       die("skip UTF-8 is not supported?");
+}
+
+?>
 --FILE--
 <?php
 var_dump(iconv_strpos('11--','1-',0,'UTF-8'));
http://cvs.php.net/viewvc.cgi/php-src/ext/iconv/tests/bug37773.phpt?r1=1.2&r2=1.3&diff_format=u
Index: php-src/ext/iconv/tests/bug37773.phpt
diff -u php-src/ext/iconv/tests/bug37773.phpt:1.2 
php-src/ext/iconv/tests/bug37773.phpt:1.3
--- php-src/ext/iconv/tests/bug37773.phpt:1.2   Wed Nov 15 18:35:18 2006
+++ php-src/ext/iconv/tests/bug37773.phpt       Wed Feb 21 19:53:48 2007
@@ -1,10 +1,18 @@
 --TEST--
 Bug #37773 (iconv_substr() gives "Unknown error" when string length = 1")
 --SKIPIF--
-<?php include('skipif.inc'); ?>
+<?php 
+include('skipif.inc'); 
+
+$test = @iconv_strpos("abbttt","ttt",0,"UTF-8");
+if ($test === false) {
+       die("skip UTF-8 is not supported?");
+}
+
+?>
 --FILE--
 <?php
        var_dump(iconv_substr('x', 0, 1, 'UTF-8'));
 ?>
 --EXPECT--
-string(1) "x"
\ No newline at end of file
+string(1) "x"

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

Reply via email to