From:             rr at gelsendata dot de
Operating system: Win32 (XPpro & 2Kpro)
PHP version:      4.3.4
PHP Bug Type:     MySQL related
Bug description:  CLI and CGI binary problem with mySQL and UTF8

Description:
------------
We are stuck with the following:

We have an application running on PHP 4.3.4 that utilizes a mySQL DB with
UTF8 as default charset for the tables, and runs on Apache 2.0.45.
PHP is configured using the Apache2 SAPI and everything works well.

We also have some PHP scripts for the CLI binary that has to access the
DB, too.
We use a self-written DB class, which is very basic.
When trying to connect to the DB the following error occurs:

-----------
File 'c:\mysql\share\charsets\?.conf' not found (Errcode: 22)
Character set '#33' is not a compiled character set and is not specified
in the 'c:\mysql\share\charsets\Index' file
-----------

The connection is not established and the script aborts, whereas a
connection with the Apache2 SAPI version works fine and works as expected,
regarding UTF8.
But since mySQL 4.1 the .conf files are deprecated and XML files are used
instead.

After consulting several forums and newsgroups we assumed this might be a
bug. A research in the bug datebase did not bring any result.

Any help with that issue would be greatly appreciated.

Many thanks in advance,
   sincerely
       Rüdiger Reinhardt,
       GelsenData GmbH

Reproduce code:
---------------
// concerning the nature of this problem, I suppose the
// reproduce code might be mandantory.

$this->connection = mysql_connect($server, $user, $password);

Expected result:
----------------
A connection to the DB server should be established.

Actual result:
--------------
The above error is printed and the script aborts.

-- 
Edit bug report at http://bugs.php.net/?id=27087&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27087&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27087&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27087&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27087&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27087&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27087&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27087&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27087&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27087&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27087&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27087&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27087&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27087&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27087&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27087&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27087&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27087&r=float

Reply via email to