#34798 [Bgs]: mysqli->set_charset is an undefined method
ID: 34798
User updated by: jarnix at jarnix dot com
Reported By: jarnix at jarnix dot com
Status: Bogus
Bug Type: MySQLi related
Operating System: Windows XP SP2
PHP Version: 5.1.0RC1
New Comment:
Here is an extract from the phpinfo() output :
mysqli
Client API version 5.0.13-rc
I use the latest versions of PHP and Mysql client.
I'm using a Windows build. Maybe there is something wrong with this
build ?
Previous Comments:
------------------------------------------------------------------------
[2005-10-10 09:37:47] georg@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
You have to compile PHP with a newer MySQL client library.
For MySQL 4.1 you need 4.1.13 or above, for MySQL 5.0 you need MySQL
5.0.5 or above
------------------------------------------------------------------------
[2005-10-10 07:48:54] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2005-10-09 23:36:29] jarnix at jarnix dot com
Description:
------------
set_charset method is undefined
Reproduce code:
---------------
$mysqli = new mysqli("localhost", "root", "", "mysql");
$mysqli->set_charset("utf8");
Expected result:
----------------
<nothing>
Actual result:
--------------
Fatal error: Call to undefined method mysqli::set_charset() (...) on
line 2
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34798&edit=1
Thread (4 messages)