Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57430 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86768 invoked from network); 19 Jan 2012 19:27:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jan 2012 19:27:09 -0000 Authentication-Results: pb1.pair.com smtp.mail=danielc@analysisandsolutions.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=danielc@analysisandsolutions.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain analysisandsolutions.com from 166.84.1.89 cause and error) X-PHP-List-Original-Sender: danielc@analysisandsolutions.com X-Host-Fingerprint: 166.84.1.89 mailbackend.panix.com Solaris 10 (beta) Received: from [166.84.1.89] ([166.84.1.89:43056] helo=mailbackend.panix.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 46/C6-37696-C8E681F4 for ; Thu, 19 Jan 2012 14:27:09 -0500 Received: from panix5.panix.com (panix5.panix.com [166.84.1.5]) by mailbackend.panix.com (Postfix) with ESMTP id E4A772E025; Thu, 19 Jan 2012 14:27:05 -0500 (EST) Received: by panix5.panix.com (Postfix, from userid 14662) id D66A124255; Thu, 19 Jan 2012 14:27:05 -0500 (EST) Date: Thu, 19 Jan 2012 14:27:05 -0500 To: Ulf Wendel Cc: Johannes =?utf-8?B?U2NobMO8dGVy?= , PHP Internals List Message-ID: <20120119192705.GA22970@panix.com> References: <20111118210619.GA13490@panix.com> <1326977447.2722.10.camel@guybrush> <4F1815F8.9010702@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4F1815F8.9010702@oracle.com> User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: [PHP-DEV] mysqli_fetch_field() mysqlnd & libmysql differences From: danielc@analysisandsolutions.com (Daniel Convissor) Gentlemen: On Thu, Jan 19, 2012 at 02:09:12PM +0100, Ulf Wendel wrote: > Am 19.01.2012 13:50, schrieb Johannes Schlüter: > > > >Your server seems to be configured for UTF-8 by default. In my tests the > >behavior for both libraries (myslqnd& libmsql) is the same if you mind > >the character set (use SET NAMES etc.) Yes, my server is set to UTF-8 in my.cnf: character-set-server = utf8 > "MySQLnd always assumes the server default charset. This charset is > sent during connection hand-shake/authentication, which mysqlnd will > use. > > Libmysql uses the default charset set in the my.cnf or by an > explicit call to mysqli_options() prior to calling > mysqli_real_connect(), but after mysqli_init().", > http://www.php.net/manual/en/mysqli.construct.php From the documentation exceprt, above, the test code in https://bugs.php.net/bug.php?id=60333 should be using the server's default character set under both mysqlnd and libmysql. So shouldn't they both come back with the same answer? Or am I misunderstanding something? Thanks, --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409