Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:14944 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28083 invoked by uid 1010); 15 Feb 2005 00:45:45 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 28048 invoked from network); 15 Feb 2005 00:45:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Feb 2005 00:45:45 -0000 X-Host-Fingerprint: 202.81.246.113 246-113.netfront.net Received: from ([202.81.246.113:58114] helo=newweb.akbkhome.com) by pb1.pair.com (ecelerity 1.2.11rc1 (r4431)) with SMTP id 65/7C-26408-73641124 for ; Mon, 14 Feb 2005 19:45:44 -0500 Received: from [192.168.0.184] (helo=[192.168.0.184]) by newweb.akbkhome.com with esmtp (Exim 4.44) id 1D0qsX-0000c5-OW; Tue, 15 Feb 2005 08:47:50 +0800 Message-ID: <4211468D.7080507@akbkhome.com> Date: Tue, 15 Feb 2005 08:47:09 +0800 User-Agent: Mozilla Thunderbird 0.8+ (X11/20041030) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Wez Furlong CC: Christian Schneider , internals@lists.php.net References: <4e89b4260502111655215a94e8@mail.gmail.com> <20050212074627.64626.qmail@lists.php.net> <5.1.0.14.2.20050214140808.03860a60@localhost> <20050214223422.17886.qmail@lists.php.net> <4e89b4260502141441d2fb8be@mail.gmail.com> In-Reply-To: <4e89b4260502141441d2fb8be@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ACL-Warn: "cleared badlog" Subject: Re: [PHP-DEV] Re: Please test PDO From: alan@akbkhome.com (Alan Knowles) It would be usefull if there was a shared struct for this in pdo core: eg. (in /ext/pdo/php_pdo_drivers_extras.h) (mysql_do_something_ptr *) mysql_do_something(pdo_stmt_t *,char * an_argument) pdo_driver_extras_mysql { mysql_do_something_ptr *mysql_do_something, .... } So that other extensions can call these methods without having to link to the specific backend, or kludge through call_user_function or something) Regards Alan Wez Furlong wrote: >Depends on the functionality. > >Drivers are free(*) to implement driver specific methods on the PDO >and PDOStatement objects, provided they are "namespaced" > >eg: > >$db->mysqlDoSomething() > >would be a mysql driver specific feature. > >More generic attributes can be accessed or set via the get/setAttribute methods. > >(*) while they are "free" to do so, it's better to discuss the feature >first to see if it can be made into a more generic feature of PDO >itself. > >-Wez. > >On Mon, 14 Feb 2005 23:34:21 +0100, Christian Schneider > wrote: > > >>Excuse my ignorance, maybe I missed the answer to Lester's question: >>What's the proposed way of accessing the DB-specific functionality once >>PDO is there? Is everything available through SQL statements or >>get/srcAttribute? After a first look at the MySQL functions my guess is >>that that's the case. At least I can't see anything I need which I >>couldn't reach that way. >> >> > > >