You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.
If the mbstring function overloading (http://us3.php.net/manual/en/mbstring.overload.php) is enabled, Zend\Config\Reader\Ini will raise an error in the method processKey() at some point, indicating that the third argument, $config expects an array but was passed a string. Most likely, this is from the last line of the if conditional in processKey(), which passes what should be a sub-array of configuration.
The text was updated successfully, but these errors were encountered:
@DASPRiD We've never stated that fact, however, and for many, this is their approach to unicode. I'm curious if it's something we can fix easily or not; if it means a rewrite, however, we can make a note in the README or elsewhere.
we'd have to replace all strlen() calls in ZF2 with iconv_strlen() (or the wrapper of it), telling it to use the ASCII-charset. Surely, this would be a huge slowdown.
Just for the record, the following functions are affected as well and would have to be exchanged when byte-work is required (which surely is in all used places, else iconv/mbstring would have been used there):
strlen()
strpos()
strrpos()
substr()
strtolower()
strtoupper()
stripos()
strripos()
strstr()
stristr()
strrchr()
substr_count()
Disclaimer: I didn't list deprecated or unused functions.
Given an INI file like the following:
If the mbstring function overloading (http://us3.php.net/manual/en/mbstring.overload.php) is enabled,
Zend\Config\Reader\Ini
will raise an error in the methodprocessKey()
at some point, indicating that the third argument,$config
expects an array but was passed a string. Most likely, this is from the last line of theif
conditional inprocessKey()
, which passes what should be a sub-array of configuration.The text was updated successfully, but these errors were encountered: