Req #44118 [Opn->Asn]: [PATCH] MySQL: Set connection charset via php.ini option
| From: | uw@php.net | Date: | Thu, 06 Jan 2011 15:19:52 +0000 |
| Subject: | Req #44118 [Opn->Asn]: [PATCH] MySQL: Set connection charset via php.ini option | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-157691@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=44118&edit=1
ID: 44118
Updated by: uw@php.net
Reported by: slava_reg at nsys dot by
Summary: [PATCH] MySQL: Set connection charset via php.ini
option
-Status: Open
+Status: Assigned
Type: Feature/Change Request
Package: MySQL related
Operating System: any
PHP Version: 5.2.5
-Assigned To:
+Assigned To: mysql
Block user comment: N
Private report: N
New Comment:
Not sure if this is really needed. It can be done in user land. Its a
bit of a convenience feature. Not many votes for it... Andrey,
Johannes...?
Previous Comments:
------------------------------------------------------------------------
[2008-02-14 13:00:54] slava_reg at nsys dot by
Description:
------------
Hi,
As I'm tired of patching various user-installed php-engines to work
correctly with newer MySQL versions (4.1.x +) that require connection
character set to be specified, I decided to solve the problem at the php
level.
So, I patched both mysql and mysqli extensions (based on an idea found
somewhere in internet).
Result is available at:
http://bubble.nsys.by/projects/patches/php/php-5.2.5-mysql-client-charset.patch
The patch introduces two more php.ini directives:
mysql.client_charset and
mysqli.client_charset
As those directives are optional, the patch shouldn't break any existing
functionality, but it could *really* help users who's native language is
not latin and who want to use some php-scripted engine with mysql
'out-of-the-box'.
Best,
Vladislav Bogdanov
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=44118&edit=1