1--TEST--
2Optional long parameter might be null (deprecated)
3--EXTENSIONS--
4mbstring
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--EXPECTF--
20Deprecated: mb_strpos(): Passing null to parameter #3 ($offset) of type int is deprecated in %s on line %d
211
22
23Deprecated: mb_strrpos(): Passing null to parameter #3 ($offset) of type int is deprecated in %s on line %d
242
25
26Deprecated: mb_stripos(): Passing null to parameter #3 ($offset) of type int is deprecated in %s on line %d
271
28
29Deprecated: mb_strripos(): Passing null to parameter #3 ($offset) of type int is deprecated in %s on line %d
302
31
32Deprecated: mb_strstr(): Passing null to parameter #3 ($before_needle) of type bool is deprecated in %s on line %d
33barbaz
34
35Deprecated: mb_strrchr(): Passing null to parameter #3 ($before_needle) of type bool is deprecated in %s on line %d
36baz
37
38Deprecated: mb_stristr(): Passing null to parameter #3 ($before_needle) of type bool is deprecated in %s on line %d
39barbaz
40
41Deprecated: mb_strrichr(): Passing null to parameter #3 ($before_needle) of type bool is deprecated in %s on line %d
42baz
43baz
44baz
45
46Deprecated: mb_strimwidth(): Passing null to parameter #4 ($trim_marker) of type string is deprecated in %s on line %d
47foo
48