Annotation of embedaddon/php/ext/mbstring/tests/mb_str_functions_opt-parameter.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Optional long parameter might be null
! 3: --FILE--
! 4: <?php
! 5: echo mb_strpos('abb', 'b', null, 'UTF-8') . "\n";
! 6: echo mb_strrpos('abb', 'b', null, 'UTF-8') . "\n";
! 7: echo mb_stripos('abb', 'B', null, 'UTF-8') . "\n";
! 8: echo mb_strripos('abb', 'B', null, 'UTF-8') . "\n";
! 9: echo mb_strstr('foobarbaz', 'ba', null, 'UTF-8') . "\n";
! 10: echo mb_strrchr('foobarbaz', 'ba', null, 'UTF-8') . "\n";
! 11: echo mb_stristr('foobarbaz', 'BA', null, 'UTF-8') . "\n";
! 12: echo mb_strrichr('foobarbaz', 'BA', null, 'UTF-8') . "\n";
! 13: echo mb_substr('foobarbaz', 6, null, 'UTF-8') . "\n";
! 14: echo mb_strcut('foobarbaz', 6, null, 'UTF-8') . "\n";
! 15: echo mb_strimwidth('foobar', 0, 3, null, 'UTF-8') . "\n";
! 16: ?>
! 17: ==DONE==
! 18: --EXPECT--
! 19: 1
! 20: 2
! 21: 1
! 22: 2
! 23: barbaz
! 24: baz
! 25: barbaz
! 26: baz
! 27: baz
! 28: baz
! 29: foo
! 30: ==DONE==
! 31: --XFAIL--
! 32: mb functions fail to allow null instead of actual value
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>