Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57465 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99478 invoked from network); 21 Jan 2012 13:31:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jan 2012 13:31:13 -0000 Authentication-Results: pb1.pair.com header.from=danielc@analysisandsolutions.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=danielc@analysisandsolutions.com; spf=permerror; 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:52801] helo=mailbackend.panix.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 06/11-21061-F1EBA1F4 for ; Sat, 21 Jan 2012 08:31:11 -0500 Received: from panix5.panix.com (panix5.panix.com [166.84.1.5]) by mailbackend.panix.com (Postfix) with ESMTP id 15CF72EDF1; Sat, 21 Jan 2012 08:31:08 -0500 (EST) Received: by panix5.panix.com (Postfix, from userid 14662) id 014C324255; Sat, 21 Jan 2012 08:31:07 -0500 (EST) Date: Sat, 21 Jan 2012 08:31:07 -0500 To: Johannes =?utf-8?B?U2NobMO8dGVy?= Cc: PHP Internals List , Ulf Wendel Message-ID: <20120121133107.GA7255@panix.com> References: <20111118210619.GA13490@panix.com> <1326977447.2722.10.camel@guybrush> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1326977447.2722.10.camel@guybrush> 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) Hi Johannes: > The documentation tells > > http://dev.mysql.com/doc/refman/5.5/en/c-api-data-structures.html > > So it is working in bytes and has to hold all possible values. That's how MySQL's internal API works. At the same time, PHP's users expect PHP to behave as documented. http://php.net/mysqli_fetch_field says length is "The width of the field, as specified in the table definition." 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