Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 384629

Summary: dev-lang/php-5.3.8 latin1 mysql connection does not work
Product: Gentoo Linux Reporter: ixuz <xman00>
Component: [OLD] ServerAssignee: PHP Bugs <php-bugs>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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