#27198 [Opn->WFx]: 'Charset not found'-warning when using CGI
| From: | sniper@php.net | Date: | Tue, 10 Feb 2004 02:52:38 +0000 |
| Subject: | #27198 [Opn->WFx]: 'Charset not found'-warning when using CGI | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-54655@lists.php.net to get a copy of this message | ||
ID: 27198
Updated by: sniper@php.net
Reported By: spam at eMeidi dot com
-Status: Open
+Status: Wont fix
Bug Type: MySQL related
Operating System: Windows 2003
PHP Version: 4.3.5RC2
New Comment:
In PHP 5 you can use your own libmysql.dll.
The bundled mysql lib in PHP 4 will not be changed.
Previous Comments:
------------------------------------------------------------------------
[2004-02-09 16:43:07] spam at eMeidi dot com
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 this bug report at http://bugs.php.net/?id=27198&edit=1