Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45820 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67493 invoked from network); 15 Oct 2009 09:08:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Oct 2009 09:08:41 -0000 Authentication-Results: pb1.pair.com header.from=mls@pooteeweet.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=mls@pooteeweet.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pooteeweet.org from 88.198.8.16 cause and error) X-PHP-List-Original-Sender: mls@pooteeweet.org X-Host-Fingerprint: 88.198.8.16 bigtime.backendmedia.com Linux 2.6 Received: from [88.198.8.16] ([88.198.8.16:58246] helo=bigtime.backendmedia.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4E/B5-31817-796E6DA4 for ; Thu, 15 Oct 2009 05:08:40 -0400 Received: from localhost (unknown [127.0.0.1]) by bigtime.backendmedia.com (Postfix) with ESMTP id EFBCD1EBC014; Thu, 15 Oct 2009 09:09:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at backendmedia.com Received: from bigtime.backendmedia.com ([127.0.0.1]) by localhost (bigtime.backendmedia.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xm9EPkHDVYQr; Thu, 15 Oct 2009 11:09:51 +0200 (CEST) Received: from [192.168.0.151] (217-162-131-234.dclient.hispeed.ch [217.162.131.234]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mls@pooteeweet.org) by bigtime.backendmedia.com (Postfix) with ESMTP id F37F8414400B; Thu, 15 Oct 2009 11:09:50 +0200 (CEST) Cc: internals@lists.php.net Message-ID: <6D6C132B-DF13-4335-A625-20AAA6C3BFB3@pooteeweet.org> To: Samuel ROZE In-Reply-To: <18e9608a0910130134l2d4768e5m282093d406268163@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Date: Thu, 15 Oct 2009 11:08:34 +0200 References: <1255038690.10759.9.camel@samuel-laptop> <1255366822.3605.80.camel@samuel-laptop> <756DDBB8-0856-495F-B525-FD22C6EC7915@pooteeweet.org> <1255378394.4410.102.camel@samuel-laptop> <18e9608a0910130134l2d4768e5m282093d406268163@mail.gmail.com> X-Mailer: Apple Mail (2.936) Subject: Re: [PHP-DEV] Re: Patch: Use notices in PDO From: mls@pooteeweet.org (Lukas Kahwe Smith) On 13.10.2009, at 10:34, Samuel ROZE wrote: > http://wiki.php.net/rfc/pdonotices I assume that calling noticeInfo() will also purge all currently stored notices (maybe controllable via some parameter)? For MySQL we would have to throw an error/exception in case there is a result set open on the same connection. I still believe that it makes sense to add this functionality. Without it we would have to add database specific solutions for various drivers. PostgreSQL being the obvious one, but even for MySQL it would make sense to then at least expose the warning count etc. regards, Lukas Kahwe Smith mls@pooteeweet.org