#34798 [Fbk->Bgs]: mysqli->set_charset is an undefined method
ID: 34798
Updated by: georg@php.net
Reported By: jarnix at jarnix dot com
-Status: Feedback
+Status: Bogus
Bug Type: MySQLi related
Operating System: Windows XP SP2
PHP Version: 5.1.0RC1
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[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)