tony2001                Wed Feb 21 19:52:20 2007 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src/ext/iconv/tests    bug37176.phpt bug37773.phpt 
  Log:
  fix tests on AIX
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/iconv/tests/bug37176.phpt?r1=1.1.2.2.2.1&r2=1.1.2.2.2.2&diff_format=u
Index: php-src/ext/iconv/tests/bug37176.phpt
diff -u php-src/ext/iconv/tests/bug37176.phpt:1.1.2.2.2.1 
php-src/ext/iconv/tests/bug37176.phpt:1.1.2.2.2.2
--- php-src/ext/iconv/tests/bug37176.phpt:1.1.2.2.2.1   Tue Jun 27 00:09:43 2006
+++ php-src/ext/iconv/tests/bug37176.phpt       Wed Feb 21 19:52:20 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.1.2.1&r2=1.1.2.2&diff_format=u
Index: php-src/ext/iconv/tests/bug37773.phpt
diff -u php-src/ext/iconv/tests/bug37773.phpt:1.1.2.1 
php-src/ext/iconv/tests/bug37773.phpt:1.1.2.2
--- php-src/ext/iconv/tests/bug37773.phpt:1.1.2.1       Wed Nov 15 18:34:57 2006
+++ php-src/ext/iconv/tests/bug37773.phpt       Wed Feb 21 19:52:20 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