Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57432 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89923 invoked from network); 19 Jan 2012 19:41:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jan 2012 19:41:04 -0000 Authentication-Results: pb1.pair.com header.from=ulf.wendel@oracle.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=ulf.wendel@oracle.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain oracle.com from 148.87.113.117 cause and error) X-PHP-List-Original-Sender: ulf.wendel@oracle.com X-Host-Fingerprint: 148.87.113.117 rcsinet15.oracle.com Received: from [148.87.113.117] ([148.87.113.117:17805] helo=rcsinet15.oracle.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5F/67-37696-EC1781F4 for ; Thu, 19 Jan 2012 14:41:03 -0500 Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id q0JJevQG015087 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 19 Jan 2012 19:40:58 GMT Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q0JJeuuS010306 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 19 Jan 2012 19:40:56 GMT Received: from abhmt116.oracle.com (abhmt116.oracle.com [141.146.116.68]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q0JJeuLG015825; Thu, 19 Jan 2012 13:40:56 -0600 Received: from [192.168.2.116] (/91.6.153.16) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 19 Jan 2012 11:40:55 -0800 Message-ID: <4F1871C4.6010302@oracle.com> Date: Thu, 19 Jan 2012 20:40:52 +0100 User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: Daniel Convissor CC: =?UTF-8?B?Sm9oYW5uZXMgU2NobMO8dGVy?= , PHP Internals List References: <20111118210619.GA13490@panix.com> <1326977447.2722.10.camel@guybrush> <4F1815F8.9010702@oracle.com> <20120119192705.GA22970@panix.com> In-Reply-To: <20120119192705.GA22970@panix.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090209.4F1871CA.0075,ss=1,re=0.000,fgs=0 Subject: Re: [PHP-DEV] mysqli_fetch_field() mysqlnd & libmysql differences From: ulf.wendel@oracle.com (Ulf Wendel) Am 19.01.2012 20:27, schrieb 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? mysqlnd simply does not read MySQL server config. It defaults to actual connection of the server. Ulf