Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45684 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1092 invoked from network); 7 Oct 2009 08:34:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Oct 2009 08:34:35 -0000 Authentication-Results: pb1.pair.com header.from=php@beccati.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=php@beccati.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain beccati.com designates 213.92.90.60 as permitted sender) X-PHP-List-Original-Sender: php@beccati.com X-Host-Fingerprint: 213.92.90.60 ispeed-srv6.housing.tomato.it Received: from [213.92.90.60] ([213.92.90.60:63692] helo=mail.beccati.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 30/28-58030-9925CCA4 for ; Wed, 07 Oct 2009 04:34:34 -0400 Received: (qmail 62074 invoked from network); 7 Oct 2009 10:34:31 +0200 Received: from unknown (HELO ?192.168.1.201?) (matteo@beccati.com@88.149.176.119) by mail.beccati.com with SMTP; 7 Oct 2009 08:34:31 -0000 Message-ID: <4ACC527A.8090909@beccati.com> Date: Wed, 07 Oct 2009 10:34:02 +0200 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Pierre Joye CC: Christopher Jones , Lukas Kahwe Smith , Samuel ROZE , PHP Internals References: <1254806557.19561.3.camel@samuel-laptop> <4ACBC540.4090308@beccati.com> <1254894205.7418.32.camel@samuel-laptop> <4ACC2B8F.2040302@oracle.com> <4ACC2E8F.8040903@beccati.com> <4ACC2F62.4050601@oracle.com> <4ACC30A3.8030205@beccati.com> <4ACC32E1.6070909@oracle.com> <4ACC3DDE.8020905@beccati.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] PDO PgSQL: _pdo_pgsql_notice From: php@beccati.com (Matteo Beccati) Pierre Joye ha scritto: > Having them part of the PHP errors is counter intuitive and add extra > work for little gain. Mysql being the most cleaner way to do it at > this stage as it does not interfer with php code at all. Yes. That's exactly why I added a new method, although driver specific. > Could we make it independent from php's errors (be notices or > warnings)? For example to add a PDO statement method to fetch these > messages after having executed or prepared a query, getMessages for > example. The PDO::exec(), method doesn't return a PDOStatement. With exec being the most common way to execute DDL or DML queries, the ones that are more likely to return a notice or warning. Cheers -- Matteo Beccati