Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45801 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99351 invoked from network); 13 Oct 2009 12:11:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Oct 2009 12:11:39 -0000 Authentication-Results: pb1.pair.com header.from=jille@hexon.cx; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=jille@hexon.cx; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain hexon.cx from 82.94.237.14 cause and error) X-PHP-List-Original-Sender: jille@hexon.cx X-Host-Fingerprint: 82.94.237.14 mulgore.hexon-is.nl Linux 2.6 Received: from [82.94.237.14] ([82.94.237.14:43502] helo=mulgore.hexon-is.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F3/88-49472-87E64DA4 for ; Tue, 13 Oct 2009 08:11:37 -0400 Received: from adidas.hexon-nijmegen.nl (gw.hexon-nijmegen.nl [82.93.241.107]) by mulgore.hexon-is.nl (8.14.1/8.14.1) with ESMTP id n9DCA9xs010238; Tue, 13 Oct 2009 14:10:09 +0200 Received: from [10.0.0.142] (HENK.hexon-nijmegen.nl [10.0.0.142]) by adidas.hexon-nijmegen.nl (8.14.3/8.14.3) with ESMTP id n9DCA6GB020852; Tue, 13 Oct 2009 14:10:07 +0200 Message-ID: <4AD46E1D.9040204@hexon.cx> Date: Tue, 13 Oct 2009 14:10:05 +0200 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Ulf Wendel CC: internals@lists.php.net References: <4AD34538.8050202@hexon.cx> <4AD34BF6.7050703@sun.com> In-Reply-To: <4AD34BF6.7050703@sun.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Hexon-MailScanner-Information: Please contact the ISP for more information X-Hexon-MailScanner-ID: n9DCA9xs010238 X-Hexon-MailScanner: Found to be clean X-Hexon-MailScanner-From: jille@hexon.cx X-Hexon-MailScanner-Watermark: 1256040624.62183@bNOtLLzhq248QA52CzoD7w Subject: Re: [PHP-DEV] [patch] mysql_warning_count() for ext/mysql From: jille@hexon.cx (Jille Timmermans) Ulf Wendel schreef: > Jille Timmermans schrieb: >> I have 'implemented' MySQL's mysql_warning_count() function. ( >> http://dev.mysql.com/doc/refman/5.1/en/mysql-warning-count.html ) >> mysql_warning_count() is available in MySQL's C-api in >3.23, >4.1 and >5 > > I am not a big fan of adding anything to ext/mysql that is not security > relevant or mission critical. mysql_warning_count() is a convenience > function. It is performance 'critical': Without this function I will have to query 'SHOW WARNINGS' after every query, which won't be good for the performance. > > Let ext/mysql run out and use ext/mysqli instead. ext/mysqli is around > since PHP 5.0 = 2004 = 5 years. It can be considered as faily stable. It > is as easy to use as ext/mysql. Performance is virtually identical. ext/mysqli didn't have persistent connections till 5.3; this made it impossible for me to switch to it at the time we had to decide. > > Only ext/mysqli gives you access to all functionality of MySQL 4.1 and > above, e.g. charset and prepared statements. Why would you hide functionality from people when you get a patch, and all that has to be done is commit it? I'm pretty sure it won't break anything. > > I see no reasons for updating ext/mysql when there is a successor (for > so long). It should have been included a long time ago, IMHO. -- Jille > > Ulf >