From: [EMAIL PROTECTED] Operating system: Windows PHP version: 4.3.0 PHP Bug Type: MySQL related Bug description: php-cli MySQL charset problem
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 bug report at http://bugs.php.net/?id=22083&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22083&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22083&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22083&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22083&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22083&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22083&r=support Expected behavior: http://bugs.php.net/fix.php?id=22083&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22083&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22083&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22083&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22083&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22083&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22083&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22083&r=gnused