From: Ant Phillips Date: Wed, 10 Dec 2008 10:34:15 +0000 (+0000) Subject: Test for bug #43841 X-Git-Tag: php-5.3.0beta1~464 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bd266a5bbf1e667bfa030137ef25df51b6c3b6f0;p=php Test for bug #43841 --- diff --git a/ext/mbstring/tests/bug43841.phpt b/ext/mbstring/tests/bug43841.phpt new file mode 100644 index 0000000000..098d267bf2 --- /dev/null +++ b/ext/mbstring/tests/bug43841.phpt @@ -0,0 +1,86 @@ +--TEST-- +Test mb_strrpos() function : mb_strrpos offset is byte count for negative values +--XFAIL-- +--SKIPIF-- + +--FILE-- + + +--EXPECTF-- + +-- Offset is -25 -- +Multibyte String: + +Notice: mb_strrpos(): Offset is greater than the length of haystack string in %s on line %d +bool(false) +ASCII String: +mb_strrpos: + +Notice: mb_strrpos(): Offset is greater than the length of haystack string in %s on line %d +bool(false) +strrpos: + +Notice: strrpos(): Offset is greater than the length of haystack string in %s on line %d +bool(false) + +-- Offset is -24 -- +Multibyte String: + +Notice: mb_strrpos(): Offset is greater than the length of haystack string in %s on line %d +bool(false) +ASCII String: +mb_strrpos: + +Notice: mb_strrpos(): Offset is greater than the length of haystack string in %s on line %d +bool(false) +strrpos: + +Notice: strrpos(): Offset is greater than the length of haystack string in %s on line %d +bool(false) + +-- Offset is -13 -- +Multibyte String: +bool(false) +ASCII String: +mb_strrpos: +bool(false) +strrpos: +bool(false) + +-- Offset is -12 -- +Multibyte String: +int(9) +ASCII String: +mb_strrpos: +int(9) +strrpos: +int(9)