PHP 4.0 Bug #8432: Can't connect database (Mysql 3.23.29). If mysql compiled with charset koi8_ru
| From: | yks at mbank dot com dot ua | Date: | Wed, 27 Dec 2000 09:13:58 +0000 |
| Subject: | PHP 4.0 Bug #8432: Can't connect database (Mysql 3.23.29). If mysql compiled with charset koi8_ru | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-42301@lists.php.net to get a copy of this message | ||
From: yks@mbank.com.ua
Operating system: Linux (Slackware 7.1)
PHP version: 4.0.4
PHP Bug Type: MySQL related
Bug description: Can't connect database (Mysql 3.23.29). If mysql compiled with charset
koi8_ru
...
$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 .
--
Edit Bug report at: http://bugs.php.net/?id=8432&edit=1