Re: Re: Allow PDO::query() to return a subclass of PDOStatement

From: Date: Wed, 18 May 2005 15:46:55 +0000
Subject: Re: Re: Allow PDO::query() to return a subclass of PDOStatement
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-16279@lists.php.net to get a copy of this message
Wez Furlong wrote:
Just like extending any other built-in class, you need to be careful to not override built-in methods that either exist now or may exist in the future; you can very easily burn yourself 6 months down the track this way. 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 :-) --Wez. 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?

« previous php.internals (#16279) next »