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?

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to