From: spam at eMeidi dot com Operating system: Windows 2003 PHP version: 4.3.5RC2 PHP Bug Type: MySQL related Bug description: 'Charset not found'-warning when using CGI
Description: ------------ PHP doesn't parse C:\WINDOWS\my.ini, where charset informations would have been specified for the current webserver. Instead, it tries to locate them somewhere in C:\MySQL\ ... - seems to be hardcoded. It would make more sense to look after C:\WINDOWS\my.ini, and only afterwards trying to hit the charsets directly. Output while running php.exe when having MySQL-function calls in PHP-Script: File 'c:\mysql\share\charsets\?.conf' not found (Errcode: 2) Character set '#5' is not a compiled character set and is not specified in the 'c:\mysql\share\charsets\Index' file Reproduce code: --------------- $res_db_conn = mysql_connect($arr_user_data[0],$arr_user_data[1],$arr_user_data[2]); Expected result: ---------------- File 'c:\mysql\share\charsets\?.conf' not found (Errcode: 2) Character set '#5' is not a compiled character set and is not specified in the 'c:\mysql\share\charsets\Index' file Except of this warning (and a disgusting beep), everything works out fine. Very bad when running cron-jobs ;-) -- Edit bug report at http://bugs.php.net/?id=27198&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27198&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27198&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27198&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27198&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27198&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27198&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27198&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27198&r=support Expected behavior: http://bugs.php.net/fix.php?id=27198&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27198&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27198&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27198&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27198&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27198&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27198&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27198&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27198&r=float