> I agree with the part about the new-style constructor always being > preferred to the old-style constructor, but besides being really > confusing, where do you being able to call the old-style as a regular > method coming in handy?
I could see people doing:
class foo { function foo() { ...constructor stuff... } function __construct() { $this->foo(); } }
In order to make the class work on both PHP4 and PHP5 in which case it would be essential for foo() to be callable as a regular method in the class.
Didn't see the context :)
Andi
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php