Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45667 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67869 invoked from network); 6 Oct 2009 05:22:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Oct 2009 05:22:34 -0000 Authentication-Results: pb1.pair.com header.from=samuel.roze@aliceadsl.fr; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=samuel.roze@aliceadsl.fr; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain aliceadsl.fr from 212.27.42.1 cause and error) X-PHP-List-Original-Sender: samuel.roze@aliceadsl.fr X-Host-Fingerprint: 212.27.42.1 smtp1-g21.free.fr Linux 2.6 Received: from [212.27.42.1] ([212.27.42.1:49372] helo=smtp1-g21.free.fr) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D1/FB-31065-714DACA4 for ; Tue, 06 Oct 2009 01:22:34 -0400 Received: from smtp1-g21.free.fr (localhost [127.0.0.1]) by smtp1-g21.free.fr (Postfix) with ESMTP id 0F69B940014 for ; Tue, 6 Oct 2009 07:22:26 +0200 (CEST) Received: from [192.168.0.10] (lns-bzn-38-82-253-115-156.adsl.proxad.net [82.253.115.156]) by smtp1-g21.free.fr (Postfix) with ESMTP id 00AF59400BC for ; Tue, 6 Oct 2009 07:22:23 +0200 (CEST) To: internals@lists.php.net Content-Type: text/plain Date: Tue, 06 Oct 2009 07:22:37 +0200 Message-ID: <1254806557.19561.3.camel@samuel-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: 7bit Subject: PDO PgSQL: _pdo_pgsql_notice From: samuel.roze@aliceadsl.fr (Samuel ROZE) Hi ! I'm reading the source of PDO PostgreSQL driver and i see that there's an empty function, _pdo_pgsql_notice, which is very interesting ! I think that it is used when PostgreSQL throw Notices. But, nothing is done... I want to know if somebody know why the content of the function is commented: static void _pdo_pgsql_notice(pdo_dbh_t *dbh, const char *message) /* {{{ */ { /* pdo_pgsql_db_handle *H = (pdo_pgsql_db_handle *)dbh->driver_data; */ } (line 98 of /etc/pdo_pgsql/pgsql_driver.c - PHP 5.2 - r272374) How can I store the content of "message" into a field of the PDOStatement ? I view that there's only a "pdo_dbh_t" param, I may just store this message into a field of the PDO class ? Thanks in advance. Samuel.