1--TEST--
2Optional long parameter might be null
3--SKIPIF--
4<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
5--FILE--
6<?php
7echo mb_strpos('abb', 'b', null, 'UTF-8') . "\n";
8echo mb_strrpos('abb', 'b', null, 'UTF-8') . "\n";
9echo mb_stripos('abb', 'B', null, 'UTF-8') . "\n";
10echo mb_strripos('abb', 'B', null, 'UTF-8') . "\n";
11echo mb_strstr('foobarbaz', 'ba', null, 'UTF-8') . "\n";
12echo mb_strrchr('foobarbaz', 'ba', null, 'UTF-8') . "\n";
13echo mb_stristr('foobarbaz', 'BA', null, 'UTF-8') . "\n";
14echo mb_strrichr('foobarbaz', 'BA', null, 'UTF-8') . "\n";
15echo mb_substr('foobarbaz', 6, null, 'UTF-8') . "\n";
16echo mb_strcut('foobarbaz', 6, null, 'UTF-8') . "\n";
17echo mb_strimwidth('foobar', 0, 3, null, 'UTF-8') . "\n";
18?>
19==DONE==
20--EXPECT--
211
222
231
242
25barbaz
26baz
27barbaz
28baz
29baz
30baz
31foo
32==DONE==
33