Re: [PHP-DEV] PHP5: Class behavior: method overloading

2004-02-28 Thread Cristiano Duarte
Hi Walter, On Thu, 26 Feb 2004 11:44:47 -0800, Walter A. Boring IV wrote: > well, if you are implementing something completely new in php5, > there there are no compatibility issues. I have many classes in my > projects in php4. I'm not sure of how many child constructors have > different pa

[PHP-DEV] PHP5: Class behavior: method overloading

2004-02-26 Thread Vivian Steller
Hello, in the latest snapshot i found some very important differences to the php5 beta 4 version concerning the behavior of inherited classes. please look at the following example: the output is: Fatal error: Declaration of MyClass::test() must be compatible with that of MyParent::test() in

Re: [PHP-DEV] PHP5: Class behavior: method overloading

2004-02-26 Thread Walter A. Boring IV
I say keep compatibility. If you want to enforce this, then declare an interface. That is after all why they exist. Walt > Hello, > > in the latest snapshot i found some very important differences to the php5 > beta 4 version concerning the behavior of inherited classes. please look at > the f

Re: [PHP-DEV] PHP5: Class behavior: method overloading

2004-02-26 Thread Vivian Steller
Walter A. Boring IV wrote: > I say keep compatibility. If you want to enforce this, then declare an > interface. That is after all why they exist. > > Walt ... Would be nice if you could give a simple example - i really have problems working with interfaces :( My problem was to design a files

Re: [PHP-DEV] PHP5: Class behavior: method overloading

2004-02-26 Thread Derick Rethans
On Thu, 26 Feb 2004, Vivian Steller wrote: > Fatal error: Declaration of MyClass::test() must be compatible with that of > MyParent::test() in ... on line 3 > > > I think that this is a nice feature in the face of "compatibility", but may > cause in a complete restructure of existing class trees.

Re: [PHP-DEV] PHP5: Class behavior: method overloading

2004-02-26 Thread Walter A. Boring IV
Quoting Vivian Steller <[EMAIL PROTECTED]>: > Walter A. Boring IV wrote: > > > I say keep compatibility. If you want to enforce this, then declare an > > interface. That is after all why they exist. > > > > Walt > ... > > Would be nice if you could give a simple example - i really have proble