On Thu, 18 Mar 2004 10:59:40 +0200 (IST), Stanislav Malyshev wrote:
> Why would anyone need this? if __construct() contains php5-only
> syntax, it won't work anyway on php4.

I just image the case of a class with some optimizations
for php5, but with a fallback implementation of some of its
features for php4 too, which get triggered by the constructor.
Anyway, I agree this is a weak argument,
there may be other ways to do the same thing.

> If it contains something that works in php4
> - why do you need separate constructor?

if the php4-way of naming a constructor is
not going to be deprecated, then I don't.
This is my main worry.

--
Lorenzo

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

Reply via email to