php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32384 old libmysqlclient caused data loss in MySQL 4.1 DB
Submitted: 2005-03-20 14:59 UTC Modified: 2005-03-20 17:46 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: ustupkin at mail dot primorye dot ru Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 4.3.10 OS: windows
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ustupkin at mail dot primorye dot ru
New email:
PHP Version: OS:

 

 [2005-03-20 14:59 UTC] ustupkin at mail dot primorye dot ru
Description:
------------
http://bugs.mysql.com/bug.php?id=8420&thanks=2&notify=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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-20 15:00 UTC] ustupkin at mail dot primorye dot ru
First I think that it MySQL bug, so

"There is an obvious bug in every win32 distribution of MySQL 4.1.x." is wrong
 [2005-03-20 17:46 UTC] sniper@php.net
If Mysql breaks backwards compatibility with their own client libs that is hardly a PHP bug.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Oct 18 04:01:29 2024 UTC