Why would anyone need this? if __construct() contains php5-only syntax, it
won't work anyway on php4. If it contains something that works in php4 -
why do you need separate constructor? Anyway, since in no place besides
constructor you can not do such tricks - why constructors should be the
only place in the language where such tricks are used? What's so special
in them?
AG>> > >> class MyClass
AG>> > >> {
AG>> > >> function MyClass() {
AG>> > >> //constructor for php4,
AG>> > >> //SHOULD be ignored by php5
AG>> > >> }
AG>> > >>
AG>> > >> function __construct() {
AG>> > >> //constructor for php5,
AG>> > >> //ignored by php4
AG>> > >> }
AG>> > >> }
AG>> > >>
AG>> > >>
AG>> > >> i.e. it doesn't allow a class to work on both php4 and php5. Or
AG>> > >> am I missing something obvious?
--
Stanislav Malyshev, Zend Products Engineer
[EMAIL PROTECTED] http://www.zend.com/ +972-3-6139665 ext.109
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php