Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45743 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90846 invoked from network); 12 Oct 2009 15:32:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Oct 2009 15:32:29 -0000 Authentication-Results: pb1.pair.com header.from=Ulf.Wendel@Sun.COM; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=Ulf.Wendel@Sun.COM; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain Sun.COM from 192.18.6.24 cause and error) X-PHP-List-Original-Sender: Ulf.Wendel@Sun.COM X-Host-Fingerprint: 192.18.6.24 gmp-eb-inf-2.sun.com Solaris 10 (beta) Received: from [192.18.6.24] ([192.18.6.24:41327] helo=gmp-eb-inf-2.sun.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B5/07-54920-B0C43DA4 for ; Mon, 12 Oct 2009 11:32:29 -0400 Received: from fe-emea-10.sun.com (gmp-eb-lb-1-fe1.eu.sun.com [192.18.6.7] (may be forged)) by gmp-eb-inf-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n9CFWO3d004760 for ; Mon, 12 Oct 2009 15:32:24 GMT MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; format=flowed Received: from conversion-daemon.fe-emea-10.sun.com by fe-emea-10.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) id <0KRE00K00PGHGN00@fe-emea-10.sun.com> for internals@lists.php.net; Mon, 12 Oct 2009 16:32:12 +0100 (BST) Received: from [192.168.2.116] (p5B06F072.dip.t-dialin.net [91.6.240.114]) by fe-emea-10.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) with ESMTPSA id <0KRE008BER5C6Y10@fe-emea-10.sun.com>; Mon, 12 Oct 2009 16:32:01 +0100 (BST) Date: Mon, 12 Oct 2009 17:32:06 +0200 In-reply-to: <4AD34538.8050202@hexon.cx> Sender: Ulf.Wendel@Sun.COM To: Jille Timmermans Cc: internals@lists.php.net Message-ID: <4AD34BF6.7050703@sun.com> References: <4AD34538.8050202@hexon.cx> User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) Subject: Re: [PHP-DEV] [patch] mysql_warning_count() for ext/mysql From: Ulf.Wendel@Sun.COM (Ulf Wendel) 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. 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. Only ext/mysqli gives you access to all functionality of MySQL 4.1 and above, e.g. charset and prepared statements. I see no reasons for updating ext/mysql when there is a successor (for so long). Ulf -- Ulf Wendel, MySQL Sun Microsystems GmbH, Sonnenallee 1, D-85551 Kirchheim-Heimstetten Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer Vorsitzender des Aufsichtsrates: Martin Haering Muenchen: HRB161028