Test: /ext/iconv/tests/iconv_strpos.phpt - Version 8.0.0-dev    

There are 3 different diffs reported by users for this test.

Count Diff
17 (55%)
005+
006+ Fatal error: Uncaught ValueError: Offset not contained in string in %s/iconv_strpos.php:12
007+ Stack trace:
008+ #0 %s/iconv_strpos.php(12): strpos('abecdbcdabef', 'bcd', 100000)
009+ #1 %s/iconv_strpos.php(21): foo('abecdbcdabef', 'bcd', 100000)
010+ #2 {main}
011+ thrown in %s/iconv_strpos.php on line 12
005- 2: %s
006- bool(false)
007- bool(false)
008- int(7)
009- int(7)
010- int(16)
011- int(16)
012- int(300)
013- int(300)
014- int(302)
015- int(151)
016- int(1)
017- int(300)
018- bool(false)
019- bool(false)
8 (26%)
005+
006+ Fatal error: Uncaught ArgumentCountError: Too few arguments to function my_error_handler(), 4 passed and exactly 5 expected in %s/iconv_strpos.php:2
007+ Stack trace:
008+ #0 [internal function]: my_error_handler(2, 'strpos(): Offse...', '/home/travis/bu...', 12)
009+ #1 %s/iconv_strpos.php(12): strpos('abecdbcdabef', 'bcd', 100000)
010+ #2 %s/iconv_strpos.php(21): foo('abecdbcdabef', 'bcd', 100000)
011+ #3 {main}
012+ thrown in %s/iconv_strpos.php on line 2
005- 2: %s
006- bool(false)
007- bool(false)
008- int(7)
009- int(7)
010- int(16)
011- int(16)
012- int(300)
013- int(300)
014- int(302)
015- int(151)
016- int(1)
017- int(300)
018- bool(false)
019- bool(false)
6 (19%)
005+ strpos(): Argument #3 ($offset) must be within argument #1 ($haystack) 005- Offset not contained in string