Annotation of embedaddon/php/ext/iconv/tests/bug37176.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Bug #37176 (iconv_strpos() fails to find a string)
        !             3: --SKIPIF--
        !             4: <?php 
        !             5: include('skipif.inc'); 
        !             6: 
        !             7: $test = @iconv_strpos("abbttt","ttt",0,"UTF-8");
        !             8: if ($test === false) {
        !             9:        die("skip UTF-8 is not supported?");
        !            10: }
        !            11: 
        !            12: ?>
        !            13: --FILE--
        !            14: <?php
        !            15: var_dump(iconv_strpos('11--','1-',0,'UTF-8'));
        !            16: var_dump(iconv_strpos('-11--','1-',0,'UTF-8'));
        !            17: ?>
        !            18: --EXPECT--
        !            19: int(1)
        !            20: int(2)

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>