php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8432 Can't connect database (Mysql 3.23.29). If mysql compiled with charset koi8_ru
Submitted: 2000-12-27 04:13 UTC Modified: 2001-06-02 21:45 UTC
From: yks at mbank dot com dot ua Assigned:
Status: Closed Package: MySQL related
PHP Version: 4.0.4 OS: Linux (Slackware 7.1)
Private report: No CVE-ID: None
 [2000-12-27 04:13 UTC] yks at mbank dot com dot ua
...
 $link = mysql_connect($server,$base, $pwd)
        or die ( $error_massage ); ...

php 4.0.4 compiled with :
'./configure' '--with-apxs=/var/lib/apache/sbin/apxs' '--with-gd'
'--enable-calendar' '--with-jpeg-dir' '--with-tiff-dir' '--enable-dbase'
'--enable-ftp' '--with-mysql' '--enable-sockets' '--enable-sysvsem'
'--enable-sysvshm'

If mysql compiled with default charsert latin1 connect to database is O'k . If default charset is koi8_ru - Warning: MySQL Connection Failed: 
Can't initialize character set 7 (path: default)
in /var/lib/apache/htdocs/.../script.php on line # .
In php 4.0.3  no bug .


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-02 21:45 UTC] sniper@php.net
Should be fixed in PHP 4.0.5. But wait for 4.0.6 as other
bugs have been fixed in it:

http://www.php.net/~andi/php-4.0.6RC2.tar.gz

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 14 18:01:32 2024 UTC