Annotation of embedaddon/php/ext/pcre/tests/invalid_utf8.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: preg_replace() and invalid UTF8
        !             3: --SKIPIF--
        !             4: <?php
        !             5: if (@preg_match('/./u', '') === false) {
        !             6:        die('skip no utf8 support in PCRE library');
        !             7: }
        !             8: ?>
        !             9: --FILE--
        !            10: <?php
        !            11: 
        !            12: $string = urldecode("search%e4"); 
        !            13: $result = preg_replace("#(&\#x*)([0-9A-F]+);*#iu","$1$2;",$string); 
        !            14: var_dump($result); 
        !            15: var_dump(preg_last_error());
        !            16: 
        !            17: echo "Done\n";
        !            18: ?>
        !            19: --EXPECT--     
        !            20: NULL
        !            21: int(4)
        !            22: Done

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