#32384 [Opn]: old libmysqlclient caused data loss in MySQL 4.1 DB
| From: | ustupkin at mail dot primorye dot ru | Date: | Sun, 20 Mar 2005 14:00:31 +0000 |
| Subject: | #32384 [Opn]: old libmysqlclient caused data loss in MySQL 4.1 DB | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-75563@lists.php.net to get a copy of this message | ||
ID: 32384
User updated by: ustupkin at mail dot primorye dot ru
Reported By: ustupkin at mail dot primorye dot ru
Status: Open
Bug Type: MySQL related
Operating System: windows
PHP Version: 4.3.10
New Comment:
First I think that it MySQL bug, so
"There is an obvious bug in every win32 distribution of MySQL 4.1.x."
is wrong
Previous Comments:
------------------------------------------------------------------------
[2005-03-20 14:59:12] ustupkin at mail dot primorye dot ru
Description:
------------
http://bugs.mysql.com/bug.php?id=8420&thanks=2¬ify=7
Windows version of PHP 4.x.x
compiled with old libmysqlclient - 3.xx.xx. Moreover, it has hardcoded
path to mysql charset dir.
Reproduce code:
---------------
<?php
$link = mysql_connect('localhost:3307', 'root', '');
$set = mysql_query('SET NAMES CP1251',$link);
$set = mysql_query('SET
COLLATION_CONNECTION=CP1251_GENERAL_CI',$link);
$charset = mysql_client_encoding($link);
printf ("current character set is %s\n", $charset);
?>
echoes
"File 'c:\mysql\share\charsets\?.conf' not found (Errcode: 22)
Character set '#51' is not a compiled character set and is not
specified in the
'c:\mysql\share\charsets\Index' file
current character set is latin1"
There is an obvious bug in every win32 distribution of MySQL 4.1.x.
There is no sense to setting such options as:
character-sets-dir=c:/mysql/share/charsets
default-character-set=cp1251
In any case as result - something like this:
File 'c:\mysql\share\charsets\?.conf' not found (Errcode: 22)
Character set '#51' is not a compiled character set and is not
specified in the
'c:\mysql\share\charsets\Index' file
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32384&edit=1