Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16282 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69148 invoked by uid 1010); 18 May 2005 18:00:21 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 38276 invoked from network); 18 May 2005 17:32:13 -0000 Received: from unknown (HELO pb1.pair.com) (127.0.0.1) by localhost with SMTP; 18 May 2005 17:32:13 -0000 X-Host-Fingerprint: 212.112.227.169 ipx11223.ipxserver.de Linux 2.4/2.6 Received: from ([212.112.227.169:53906] helo=ipx11223.ipxserver.de) by pb1.pair.com (ecelerity 1.2 r(5656M)) with SMTP id DC/BE-01538-C1C7B824 for ; Wed, 18 May 2005 13:32:12 -0400 Received: from localhost (localhost [127.0.0.1]) by ipx11223.ipxserver.de (Postfix) with ESMTP id B4B1ADF0108; Wed, 18 May 2005 19:05:49 +0200 (CEST) Received: from ipx11223.ipxserver.de ([127.0.0.1]) by localhost (ipx11223 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06971-09; Wed, 18 May 2005 19:05:46 +0200 (CEST) Received: from [172.16.0.10] (unknown [201.134.187.252]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ipx11223.ipxserver.de (Postfix) with ESMTP id A624EDF0211; Wed, 18 May 2005 19:00:37 +0200 (CEST) Message-ID: <428B6684.7040402@php.net> Date: Wed, 18 May 2005 12:00:04 -0400 User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nicholas Telford Cc: Wez Furlong , internals@lists.php.net References: <20050518132615.55570.qmail@lists.php.net> <428B40D7.8030903@php.net> <4e89b426050518083848d9a25@mail.gmail.com> <428B636F.1050902@ntlworld.com> In-Reply-To: <428B636F.1050902@ntlworld.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by somedaemon at backendmedia.com Subject: Re: [PHP-DEV] Re: Allow PDO::query() to return a subclass of PDOStatement From: lsmith@php.net (Lukas Smith) Nicholas Telford wrote: > Wez Furlong wrote: >> It's generally a bad idea, and definitely something to avoid if you >> are building a class library. >> >> You have now been warned that the traffic is dangerous; if you want to >> go play in it, it's your choice :-) > The same could be said for using an external Framework or library > (except that they'd have the luxury of protecting important methods with > "final"). > > I take it parent::method() works with built-in classes? err Wez do you think this should really be the case? This will make the idea that further levels of abstraction be implemented in userland kinda needlessly hard. This will mean that you need to wrap rather than extend. Or let me rephrase: I would very much appreciate it if an explicit extra effort (triple E) would be made to prevent these kind of situations. Obviously as new functionality is added there might be issues. Then again atleast we two dont seem to have a large overlap in method naming :-) regards, Lukas