Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:14947 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66589 invoked by uid 1010); 15 Feb 2005 01:28:05 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 66573 invoked from network); 15 Feb 2005 01:28:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Feb 2005 01:28:05 -0000 X-Host-Fingerprint: 64.233.184.205 wproxy.gmail.com Linux 2.4/2.6 Received: from ([64.233.184.205:33100] helo=wproxy.gmail.com) by pb1.pair.com (ecelerity 1.2.11rc1 (r4431)) with SMTP id 70/8E-26408-42051124 for ; Mon, 14 Feb 2005 20:28:04 -0500 Received: by wproxy.gmail.com with SMTP id 63so397600wri for ; Mon, 14 Feb 2005 17:28:02 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=igdqgCfq1aw4HDhvq6aneZZSic2fPC8brkSSm6gumKd1Z7kXbt1m362aawSYz9vStuaEHcvSqa1yPDZrMlkyT/xHgOoUahAvMyBdCpZDB+c3Jq0j/hYL7zNm7+Zi1rh45Y6QXT0ndgvBx0alVhd2HQdOaPHHb59+MS7wPCIV3Ek= Received: by 10.54.19.38 with SMTP id 38mr18119wrs; Mon, 14 Feb 2005 17:28:02 -0800 (PST) Received: by 10.54.59.22 with HTTP; Mon, 14 Feb 2005 17:28:02 -0800 (PST) Message-ID: <4e89b42605021417287784df9e@mail.gmail.com> Date: Mon, 14 Feb 2005 20:28:02 -0500 Reply-To: Wez Furlong To: Alan Knowles Cc: Christian Schneider , internals@lists.php.net In-Reply-To: <4211468D.7080507@akbkhome.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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> <4211468D.7080507@akbkhome.com> Subject: Re: [PHP-DEV] Re: Please test PDO From: kingwez@gmail.com (Wez Furlong) That's also something of a hack (PDO core doesn't and shouldn't know about mysql specific features). It's better to have a generic mechanism for this, such as the "interfaces" idea I mentioned a couple of years back. I don't think there will be time to wedge that into 5.1 though :-/ --Wez. On Tue, 15 Feb 2005 08:47:09 +0800, Alan Knowles wrote: > 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. > >> > >> > > > > > > > >