ID: 36863
Updated by: [EMAIL PROTECTED]
Reported By: joustin at post dot pl
-Status: Open
+Status: Bogus
Bug Type: MySQLi related
Operating System: Windows
PHP Version: 5.1.2
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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] [EMAIL PROTECTED]
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.
------------------------------------------------------------------------
[2006-03-26 13:00:34] joustin at post dot pl
Description:
------------
MYSQL Client API version 5.0.18
PHP 5.1.2 (cli) (built: Jan 11 2006 16:40:00)
Cannot call set_charset method of mysqli object!
Reproduce code:
---------------
$c = new mysqli('localhost','root','','test');
if($c)
var_dump(method_exists($c,'set_charset'));
Expected result:
----------------
true
Actual result:
--------------
false
Export Table:
Name: LIBMYSQL.dll
Time Date Stamp: 0x43B2E430 (2005-12-28 21:14:56)
Version: 0.00
Ordinal Base: 1
Number of Functions: 150
Number of Names: 150
Ordinal Entry Point Name
[...]
58 0x00014E50 mysql_get_character_set_info
59 0x00014D20 mysql_get_client_info
[...]
99 0x00003BB0 mysql_set_character_set
[...]
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36863&edit=1