BinStringStatic test

The idea is that the standard column should be identical to the BinString column on systems without mbstring.func_overload enabled.

Cells with a pink background are expected to fail, as they are either parsing mb strings to non mb aware functions, where they can't convert or deal with those utf8 characters, or they are just containing characters the function can't handle, due to having the wrong locale.

The test strings contain the three Danish letters æ, ø and å, not all PHP string functions can parse those, for instance the case conversion functions.

ereg functions are not tested, as they have been deprecated from PHP 5.3.0, and people should use the PCRE extension's preg_* functions instead.

Using PHP_VERSION_ID: 50329

Static class

functionmb_inputstandardmb_*BinStringStatic._*
mail() no UNTESTED UNTESTED UNTESTED
strlen()yes PASS
received: 10
PASS
received: 7
PASS
received: 10
no PASS
received: 7
PASS
received: 7
PASS
received: 7
strpos()yes PASS
received: 6
PASS
received: 5
PASS
received: 6
no PASS
received: 5
PASS
received: 5
PASS
received: 5
strrpos()yes PASS
received: 6
PASS
received: 5
PASS
received: 6
no PASS
received: 5
PASS
received: 5
PASS
received: 5
stripos()yes PASS
received: 6
PASS
received: 5
PASS
received: 6
no PASS
received: 5
PASS
received: 5
PASS
received: 5
strripos()yes PASS
received: 6
PASS
received: 5
PASS
received: 6
no PASS
received: 5
PASS
received: 5
PASS
received: 5
strstr()yes PASS
received: øå
PASS
received: øå
PASS
received: øå
no PASS
received: øå
PASS
received: øå
PASS
received: øå
stristr()yes PASS
received: øå
PASS
received: øå
PASS
received: øå
no PASS
received: øå
PASS
received: øå
PASS
received: øå
strrchr()yes FAIL
received: å
expected: øå
PASS
received: øå
FAIL
received: å
expected: øå
no PASS
received: øå
PASS
received: øå
PASS
received: øå
substr()yes PASS
received: øå
PASS
received: øå
PASS
received: øå
no PASS
received: øå
PASS
received: øå
PASS
received: øå
strtolower()yes FAIL
received: testÆøå
expected: testæøå
PASS
received: testæøå
FAIL
received: testÆøå
expected: testæøå
no FAIL
received: testÆøå
expected: testæøå
PASS
received: testæøå
FAIL
received: testÆøå
expected: testæøå
strtoupper()yes FAIL
received: TESTÆøå
expected: TESTÆØÅ
PASS
received: TESTÆØÅ
FAIL
received: TESTÆøå
expected: TESTÆØÅ
no FAIL
received: TESTÆøå
expected: TESTÆØÅ
PASS
received: TESTÆØÅ
FAIL
received: TESTÆøå
expected: TESTÆØÅ
substr_count()yes PASS
received: 1
PASS
received: 1
PASS
received: 1
no PASS
received: 1
PASS
received: 1
PASS
received: 1
ereg() no UNTESTED UNTESTED UNTESTED
eregi() no UNTESTED UNTESTED UNTESTED
ereg_replace() no UNTESTED UNTESTED UNTESTED
eregi_replace() no UNTESTED UNTESTED UNTESTED
split() no UNTESTED UNTESTED UNTESTED
startsWith() no PASS
received: false
PASS
received: false
PASS
received: true
endsWith() no PASS
received: false
PASS
received: false
PASS
received: true