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 problems > working with interfaces :(
interface Entry function __construct($name, $path); } class Folder implements Entry { var $name = ''; var $path = ''; function __construct( $name, $path ) { $this->name = $name; $this->path = $path; } } > > > how could i implement my interfaces? I think interfaces wouldn't solve php4 > compatibility problems... ----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 parameters (my guess is not many), but enforcing strict parameter count for childs classes would break compatibility. Which is why I think that one should just use an interface to enforce this rule. It seems like the right place for it. my $0.02 Walt -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php