#22083 [Csd]: php-cli MySQL charset problem
| From: | spam at vrana dot cz | Date: | Fri, 02 Jan 2004 17:39:21 +0000 |
| Subject: | #22083 [Csd]: php-cli MySQL charset problem | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-52723@lists.php.net to get a copy of this message | ||
ID: 22083
User updated by: spam at vrana dot cz
Reported By: spam at vrana dot cz
Status: Closed
Bug Type: MySQL related
Operating System: Windows
PHP Version: 4.3.0
New Comment:
It's OK in 4.3.4. my.ini is still ignored, but there are no double
backslash.
Previous Comments:
------------------------------------------------------------------------
[2004-01-02 12:31:37] selfman at netax dot sk
The bug reappears in PHP 4.3.4 Win32 ISAPI Module for apache.
------------------------------------------------------------------------
[2003-03-27 07:29:35] edink@php.net
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
[2003-02-05 15:52:19] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22083&edit=1