Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 384629 - dev-lang/php-5.3.8 latin1 mysql connection does not work
Summary: dev-lang/php-5.3.8 latin1 mysql connection does not work
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: Normal normal
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-27 08:37 UTC by ixuz
Modified: 2011-10-02 11:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ixuz 2011-09-27 08:37:18 UTC
After updating apache from 2.2.19 to 2.2.21 and php 5.3.6 to 5.3.8 the following parameter does not work anymore:

/etc/php/apache2-php5.3/php.ini:

mysql.connect_charset = latin1

Connection to this specific latin1 DB will made with UTF8 encoding which results in error on that using website. So umlauts are not shown correctly.


Reproducible: Always
Comment 1 Ole Markus With (RETIRED) gentoo-dev 2011-10-02 11:32:34 UTC
This worked in the first place because of an undocumented feature added by a patch. The patch was dropped in PHP 5.3.7 as Gentoo policy is to diverge from upsteam feature-wise.

You need to use e.g mysql_set_charset [1] instead.


[1] http://php.net/manual/en/function.mysql-set-charset.php