#36863 [Com]: No set_charset method despite libmysql 5.0.18 and php 5.1.2
| From: | kleef84 at hotmail dot com | Date: | Sun, 26 Mar 2006 14:55:46 +0000 |
| Subject: | #36863 [Com]: No set_charset method despite libmysql 5.0.18 and php 5.1.2 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-94905@lists.php.net to get a copy of this message | ||
ID: 36863
Comment by: kleef84 at hotmail dot com
Reported By: joustin at post dot pl
Status: Open
Bug Type: MySQLi related
Operating System: Windows
PHP Version: 5.1.2
New Comment:
You can download the latest mysql connector for PHP5 from the mysql
site at http://dev.mysql.com/downloads/connector/php/
Previous Comments:
------------------------------------------------------------------------
[2006-03-26 13:57:38] joustin at post dot pl
So what does the following refer to?
Note: To use this function on a Windows platform you need MySQL client
library version 4.1.11 or above (for MySQL 5.0 you need 5.0.6 or above)
http://www.php.net/manual/en/function.mysqli-set-charset.php
Are you suggesting it's impossible to get mysql5 support in php5 for
win32 unless re-compiled ?
------------------------------------------------------------------------
[2006-03-26 13:48:37] tony2001@php.net
You can change the library as many times as you want, but the function
will not appear magically because the .dll was compiled against older
library.
------------------------------------------------------------------------
[2006-03-26 13:27:18] joustin at post dot pl
Tried newest build:
PHP 5.1.3RC2-dev (cli) (built: Mar 26 2006 12:18:57)
... and no effect.
Btw: the mysql server is also ver 5.0.18, win32 build on dedicated
win2003 server.
Tried with 5.1.2 php on linux, also mysqli with Client API version =>
5.0.18. Working flawlessly!
------------------------------------------------------------------------
[2006-03-26 13:18:16] joustin at post dot pl
On win32 PHP it all depends on libmysql.dll (taken from php dir or env)
and php_mysqli.dll extension.
Changing libmysql.dll changes the "Client API version" reported by
phpinfo(). Checked against other Mysql 5.x specific functions.
See man for set_charset()
------------------------------------------------------------------------
[2006-03-26 13:07:26] tony2001@php.net
It doesn't depend on the version you have installed, it depends on the
version it was built against.
AFAIK 4.x is used for Windows builds.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/36863
--
Edit this bug report at http://bugs.php.net/?id=36863&edit=1