Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 60793 - php 4.0.6-12 complains of charsets
php 4.0.6-12 complains of charsets
Product: Red Hat Linux
Classification: Retired
Component: php (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Joe Orton
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2002-03-06 14:56 EST by David Trcka
Modified: 2007-04-18 12:40 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-04-05 08:34:22 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description David Trcka 2002-03-06 14:56:53 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020205

Description of problem:
When running script via php interpreter while mysql daemon is running with
default-character-set specified, script fails with "File
'NONEXISTENT/charsets/?.conf' not found (Errcode: 2)" error message.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.specify default-character-set=latin2 in [mysqld] section of /etc/my.cnf
2.restart mysqld
3.create php script which uses mysql_* command, e.g.
#!/usr/bin/php -q
  @$conn = mysql_connect("localhost","user","password");
  echo "Hello, world\n";

4. run that srcipt

Actual Results:  File 'NONEXISTENT/charsets/?.conf' not found (Errcode: 2)
Character set '#9' is not a compiled character set and is not specified in the
'NONEXISTENT/charsets/Index' file
Hello, world

Expected Results:  Hello, world

Additional info:

Workaround is either not to specify default-character-set in /etc/my.cnf (it
breaks localized behaviour) or to symlink /usr/share/mysql to NONEXISTENT in
actual directory.
Comment 1 David Trcka 2002-03-07 08:03:18 EST
Perhaps should PHP be compiled with line
replaced with
#define SHAREDIR "/usr/share/mysql"
in ext/mysql/libmysql/my_config.h ?
Comment 2 Joe Orton 2004-04-05 08:34:22 EDT
Thanks for the report.  Please reopen this bug if the issue is still
reproducible against current releases.

Note You need to log in before you can comment on or make changes to this bug.