Test: /ext/mbstring/tests/bug45923.phpt - Version 7.4.3        

Bug #45923 mb_st[r]ripos() offset not handled correctly
Submitted: 2008-08-26 16:07:42 Modified: 2009-02-14 10:13:42
From: d_kelsey Assigned: moriyoshi
Status: Closed Package: mbstring related
PHP Version: 5.*CVS (2009-01-21) OS: *

There is 1 diff reported by users for this test.

Count Diff
3 (100%)
033+ int(10) 033- int(4) 035+ int(10) 035- int(8) 037+ int(10) 037- bool(false) 039+ int(20) 039- bool(false) 041+ int(20) 041- 042- Warning: mb_strpos(): Offset not contained in string in %s on line %d 043- bool(false) 045+ bool(false) 047+ bool(false) 047- int(8) 049+ int(10) 049- int(8) 052- Warning: mb_strpos(): Offset not contained in string in %s on line %d 053- bool(false) 054- 083+ int(10) 085+ int(10) 087+ int(10) 087- int(4) 089+ int(20) 089- int(8) 091+ int(20) 091- bool(false) 093- bool(false) 095+ bool(false) 095- 096- Warning: mb_stripos(): Offset not contained in string in %s on line %d 097- bool(false) 097+ bool(false) 099+ int(10) 101- int(8) 103- int(8) 106- Warning: mb_stripos(): Offset not contained in string in %s on line %d 107- bool(false) 108- 131+ int(20) 133+ int(20) 135+ int(20) 137+ int(20) 139+ int(20) 139- int(8) 141+ int(20) 142+ > Offset: -1 143+ int(20) 144+ > Offset: -3 145+ int(20) 146+ > Offset: -6 147+ int(20) 148+ > Offset: -20 149+ int(0) 141- int(8) 143- int(8) 145- bool(false) 147- bool(false) 150- Warning: mb_strrpos(): Offset is greater than the length of haystack string in %s on line %d 151+ ------- strripos ----------- 152+ 153+ > Offset: 0 154+ int(8) 155+ > Offset: 3 156+ int(8) 157+ > Offset: 6 158+ int(8) 159+ > Offset: 9 160- Warning: mb_strrpos(): Offset is greater than the length of haystack string in %s on line %d 161+ > Offset: 11 162+ bool(false) 163+ > Offset: 12 164+ 165+ Warning: strripos(): Offset is greater than the length of haystack string in %s/bug45923.php on line 8 166+ bool(false) 163- ------- strripos ----------- 166- int(8) 168- int(8) 170- int(8) 172- bool(false) 174- bool(false) 175+ Warning: strripos(): Offset is greater than the length of haystack string in %s/bug45923.php on line 8 176- 177- Warning: strripos(): Offset is greater than the length of haystack string in %s on line %d 178- bool(false) 179- > Offset: -1 180- int(8) 181- > Offset: -3 182- int(8) 183- > Offset: -6 184- int(4) 178+ ------- mb_strripos ----------- 181+ int(20) 183+ int(20) 185+ int(20) 186- 187+ int(20) 189+ int(20) 191+ int(20) 192+ > Offset: -1 193+ int(20) 194+ > Offset: -3 195+ int(20) 196+ > Offset: -6 197+ int(20) 199+ int(0) 187- Warning: strripos(): Offset is greater than the length of haystack string in %s on line %d 188- bool(false) 189- 190- ------- mb_strripos ----------- 191- 192- > Offset: 0 193- int(8) 194- > Offset: 3 195- int(8) 196- > Offset: 6 197- int(8) 198- > Offset: 9 199- bool(false) 200- > Offset: 11 201- bool(false) 202- > Offset: 12 203- 204- Warning: mb_strripos(): Offset is greater than the length of haystack string in %s on line %d 205- bool(false) 206- > Offset: -1 207- int(8) 208- > Offset: -3 209- int(8) 210- > Offset: -6 211- int(4) 212- > Offset: -20 213- 214- Warning: mb_strripos(): Offset is greater than the length of haystack string in %s on line %d 215- bool(false)