treated like a normal method in every way. In a few years when people who have never seen PHP4 happen to create a method with the same name as the class would get very confused if it didn't work I would think.
Good point.
I'd even extend that to allow __construct being called as a normal method too. After all I could also build your example the other way around: An object with some special code for PHP4. But more importantly it is orthogonal and simple to be able to call everything which is declared as function ...() in a class.
- Chris
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php