#36863 [Opn->Bgs]: No set_charset method despite libmysql 5.0.18 and php 5.1.2

From: Date: Sun, 26 Mar 2006 11:07:26 +0000
Subject: #36863 [Opn->Bgs]: 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-94900@lists.php.net to get a copy of this message
ID: 36863 Updated by: tony2001@php.net 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: 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. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#94900) next »