]> granicus.if.org Git - php/commitdiff
fix tests on AIX
authorAntony Dovgal <tony2001@php.net>
Wed, 21 Feb 2007 19:52:20 +0000 (19:52 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 21 Feb 2007 19:52:20 +0000 (19:52 +0000)
ext/iconv/tests/bug37176.phpt
ext/iconv/tests/bug37773.phpt

index 2bcc57c6903b7b95733ab8dc7ab4cd3587bf8b09..70242fe0917d0057125079610af5de3035b8d4a5 100644 (file)
@@ -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'));
index f55c153b85c4a6a1e078c380df45103acd08c97e..d21e6fd0f84c327e8c3c6e9b34af2fa6f1149d20 100644 (file)
@@ -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"