Войти через VK Войти через FB Войти через Google Войти через Яндекс
Поиск по сайту
Connection state
The connection state is not only changed by API calls. Thus, even if PECL mysqlnd_ms monitors all API calls, the application must still be aware. Ultimately, it is the applications responsibility to maintain the connection state, if needed.
Charsets and string escaping
Due to the use of lazy connections, which are a default, it can happen that an application tries to escape a string for use within SQL statements before a connection has been established. In this case string escaping is not possible. The string escape function does not know what charset to use before a connection has been established.
To overcome the problem a new configuration setting server_charset has been introduced in version 1.4.0.
Attention has to be paid on escaping strings with a certain charset but using the result on a connection that uses a different charset. Please note, that PECL/mysqlnd_ms manipulates connections and one application level connection represents a pool of multiple connections that all may have different default charsets. It is recommended to configure the servers involved to use the same default charsets. The configuration setting server_charset does help with this situation as well. If using server_charset, the plugin will set the given charset on all newly opened connections.
User Contributed Notes
There are no user contributed notes for this page.
Смотрите также:
Описание на ru2.php.net
Описание на php.ru