zendframework/zf2 — pull request #546 by sasezaki (2011-10-31 14:09:07+00:00)
Title: [Hotfix]Http Client (add strlen to get length of binary & update testContentTypeAdditionalInfo)

(1) To get length of binary, add strlen(, 'ASCII') method , & replacing ZF1's mb_internal_encoding hack

Method name "strlen" is Zend\OpenId\OpenId.
but, I didn't sync it OpenId's.
(Checking mb_internal_encoding was used at ZF1's HttpClient.
& using 'ASCII' is make more clear instead of 'latin1')

To check func_overload simply.

$ php -d mbstring.func_overload=2
-d mbstring.internal_encoding=UTF-8
-r "var_dump((int)ini_get('mbstring.func_overload') & 2);var_dump(strlen('マルチバイト文字列'));"

(2) Update 'testContentTypeAdditionalInfo()' to make it clear.
(This test was added at https://github.com/zendframework/zf2/pull/533 )