PHP :: Bug #22083 :: php-cli MySQL charset problem
| Bug #22083 | php-cli MySQL charset problem | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2003-02-05 15:52 UTC | Modified: | 2004-02-10 07:35 UTC |
|
||||||
| From: | spam at vrana dot cz | Assigned: | ||||||||
| Status: | Closed | Package: | MySQL related | |||||||
| PHP Version: | 4.3.0 | OS: | Windows | |||||||
| Private report: | No | CVE-ID: | None | |||||||
[2003-02-05 15:52 UTC] spam at vrana dot cz
When I set default-character-set=win1250 in my.ini, php-cli says: File 'c:\mysql\\share\charsets\?.conf' not found (Errcode: 2) Character set '#26' is not a compiled character set and is not specified in the 'c:\mysql\\share\charsets\Index' file The problem is, that php-cli ignores character-sets-dir= in my.ini and uses its own hard-coded path c:\mysql\. If I move the share\charsets\ directory into c:\mysql\, the problem is still here because there are two backslashes in path, where php-cli tries to find it. When I hexa edited php4ts.dll and change c:/mysql/ to c:/mysql3 and move share\charsets\ directory there, everything is working. Solution: 1. Change the default path for finding charsets from "c:/mysql/" to "c:/mysql" 2. If possible, read character-sets-dir= from C:\Windows\my.ini.
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2003-03-27 07:29 UTC] edink@php.net
[2004-01-02 12:31 UTC] selfman at netax dot sk
[2004-01-02 12:39 UTC] spam at vrana dot cz
[2004-01-04 17:02 UTC] selfman at netax dot sk
[2004-02-10 07:35 UTC] spam at vrana dot cz